forked from sultansq/kiu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
id.py
131 lines (113 loc) · 4.68 KB
/
id.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
import asyncio
from pyrogram import Client, filters
from AnonX import app
import random
from strings.filters import command
from pyrogram.types import Message, InlineKeyboardMarkup, InlineKeyboardButton
# # # ##### ##### ####
# # # # # # #
# # # ##### # #####
# # # # # ## # #
# # ##### ###### # #
iddof = []
@app.on_message(
command(["قفل الايدي","تعطيل الايدي"])
& filters.group
& ~filters.edited
)
async def iddlock(client, message):
get = await app.get_chat_member(message.chat.id, message.from_user.id)
if get.status in ["creator", "administrator"]:
if message.chat.id in iddof:
return await message.reply_text("تم معطل من قبل🔒")
iddof.append(message.chat.id)
return await message.reply_text("تم تعطيل الايدي بنجاح ✅🔒")
else:
return await message.reply_text("لازم تكون ادمن يشخه علشان اسمع كلامك")
@app.on_message(
command(["فتح الايدي","تفعيل الايدي"])
& filters.group
& ~filters.edited
)
async def iddopen(client, message):
get = await app.get_chat_member(message.chat.id, message.from_user.id)
if get.status in ["creator", "administrator"]:
if not message.chat.id in iddof:
return await message.reply_text("الايدي مفعل من قبل ✅")
iddof.remove(message.chat.id)
return await message.reply_text("تم فتح الايدي بنجاح ✅🔓")
else:
return await message.reply_text("لازم تكون ادمن يشخه علشان اسمع كلامك")
@app.on_message(
command(["ايدي","id","ا"])
& filters.group
& ~filters.edited
)
async def iddd(client, message):
if message.chat.id in iddof:
return
usr = await client.get_chat(message.from_user.id)
name = usr.first_name
photo = await app.download_media(usr.photo.big_file_id)
await message.reply_photo(photo, caption=f"""🤡 ¦𝙽𝙰𝙼𝙴 :{message.from_user.mention}\n🎯 ¦𝚄𝚂𝙴𝚁 :@{message.from_user.username}\n🎃 ¦𝙸𝙳 :`{message.from_user.id}`\n💌 ¦𝙱𝙸𝙾 :{usr.bio}\n✨ ¦𝙲𝙷𝙰𝚃: {message.chat.title}\n♻️ ¦𝙸𝙳.𝙶𝚁𝙾𝚄𝙿 :`{message.chat.id}`""",
reply_markup=InlineKeyboardMarkup(
[
[
InlineKeyboardButton(
name, url=f"https://t.me/{message.from_user.username}")
],
]
),
)
iddof = []
@app.on_message(
command(["قفل جمالي","تعطيل جمالي"])
& filters.group
& ~filters.edited
)
async def lllock(client, message):
get = await app.get_chat_member(message.chat.id, message.from_user.id)
if get.status in ["creator", "administrator"]:
if message.chat.id in iddof:
return await message.reply_text("جمالي معطل من قبل✅")
iddof.append(message.chat.id)
return await message.reply_text(" تم تعطيل جمالي بنجاح✅🔒")
else:
return await message.reply_text("لازم تكون ادمن يشخه علشان اسمع كلامك")
@app.on_message(
command(["فتح جمالي","تفعيل جمالي"])
& filters.group
& ~filters.edited
)
async def idljjopen(client, message):
get = await app.get_chat_member(message.chat.id, message.from_user.id)
if get.status in ["creator", "administrator"]:
if not message.chat.id in iddof:
return await message.reply_text("جمالي مفعل من قبل✅")
iddof.remove(message.chat.id)
return await message.reply_text("تم فتح جمالي بنجاح ✅🔓")
else:
return await message.reply_text("لازم تكون ادمن يشخه علشان اسمع كلامك")
@app.on_message(
command(["جمالي"])
& filters.group
& ~filters.edited
)
async def idjjdd(client, message):
if message.chat.id in iddof:
return
usr = await client.get_chat(message.from_user.id)
name = usr.first_name
i = ["0","10", "15","20", "25","30","35", "40","45", "50","55", "60"," 66", "70","77", "80","85", "90","99", "100","1000" ]
ik = random.choice(i)
photo = await app.download_media(usr.photo.big_file_id)
await message.reply_photo(photo, caption=f"نسبه جمالك يا مز انت \n│ \n└ʙʏ: {ik} %😂❤️",
reply_markup=InlineKeyboardMarkup(
[
[
InlineKeyboardButton(
name, url=f"https://t.me/{message.from_user.username}")
],
]
),
)