-
Notifications
You must be signed in to change notification settings - Fork 5
/
gbam.py
62 lines (59 loc) · 2.44 KB
/
gbam.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
# This is a troll indeed ffs *facepalm*
import asyncio
from telethon import events
from telethon.tl.functions.users import GetFullUserRequest
from telethon.tl.types import ChannelParticipantsAdmins
from ULTRA import CMD_HELP
from ULTRA.utils import admin_cmd
@borg.on(admin_cmd("gbam"))
async def gbun(event):
if event.fwd_from:
return
gbunVar = event.text
gbunVar = gbunVar[6:]
mentions = "`Warning!! User 𝙂𝘽𝘼𝙉𝙉𝙀𝘿 By Admin...\n`"
no_reason = "__Reason: Madarchod Saala"
await event.edit("** Nikal Lawde❗️⚜️☠️**")
asyncio.sleep(3.5)
chat = await event.get_input_chat()
async for x in borg.iter_participants(chat, filter=ChannelParticipantsAdmins):
mentions += f""
reply_message = None
if event.reply_to_msg_id:
reply_message = await event.get_reply_message()
replied_user = await event.client(GetFullUserRequest(reply_message.sender_id))
firstname = replied_user.user.first_name
usname = replied_user.user.username
idd = reply_message.sender_id
# make meself invulnerable cuz why not xD
if idd == 1100231654:
await reply_message.reply("`Wait a second, This is my master!`\n**How dare you threaten to ban my master nigger!**\n\n__Your account has been hacked! Pay 69$ to my master__ [LEGEND X](https://t.me/LEGENDX22) __to release your account__😏")
else:
jnl=("`Warning!! `"
"[{}](tg://user?id={})"
"` 𝙂𝘽𝘼𝙉𝙉𝙀𝘿 By Admin...\n\n`"
"**Person's Name: ** __{}__\n"
"**ID : ** `{}`\n"
).format(firstname, idd, firstname, idd)
if usname == None:
jnl += "**Victim Nigga's username: ** `Doesn't own a username!`\n"
elif usname != "None":
jnl += "**Victim Nigga's username** : @{}\n".format(usname)
if len(gbunVar) > 0:
gbunm = "`{}`".format(gbunVar)
gbunr = "**Reason: **"+gbunm
jnl += gbunr
else:
jnl += no_reason
await reply_message.reply(jnl)
else:
mention = "`Warning!! User 𝙂𝘽𝘼𝙉𝙉𝙀𝘿 By Admin...\nReason: Not Given `"
await event.reply(mention)
await event.delete()
CMD_HELP.update(
{
"gbam": "**Plugin : **`gbam`\
\n\n**Syntax : **`.gbam`\
\n**Function : **fake gban for ULTRA"
}
)