-
Notifications
You must be signed in to change notification settings - Fork 5
/
ginfo.py
69 lines (63 loc) · 2.84 KB
/
ginfo.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
"""
(((((((((((((((((((((((@LEGENDX22)))))))))))))))))))))))))))
(((((((((((((((((((((((@LEGENDX22)))))))))))))))))))))))))))
(((((((((((((((((((((((@LEGENDX22)))))))))))))))))))))))))))
(((((((((((((((((((((((@LEGENDX22)))))))))))))))))))))))))))
made by @LEGENDX22
credits TEAMLEGEND
idea by @Alain_Champion
((((((((((((((((((((((((( @LEGENDX22 AND @PROBOYX)))))))))))))))))))))))))))
"""
from telethon.errors.rpcerrorlist import YouBlockedUserError
from ULTRA import CMD_HELP
from ULTRA.utils import admin_cmd
from LEGENDX import MASTER
LEGEND = MASTER
PROBOY = "@tgscanrobot"
# MADE BY LEGENDX22 🔥🔥
@borg.on(admin_cmd("ginfo ?(.*)"))
async def _(event):
if event.fwd_from:
return
LEGENDX = event.pattern_match.group(1)
if "@" in LEGENDX:
async with borg.conversation(PROBOY) as conv:
try:
await event.edit(f"THIS USER DETAILS CHECKING BY {LEGEND}")
await conv.send_message("/start")
await conv.get_response() #made by LEGENDX22
await conv.send_message(f"{LEGENDX}")
TEAMX = await conv.get_response()
await borg.send_message(event.chat_id, TEAMX.text)
await event.delete() #made by LEGENDX22
except YouBlockedUserError:
await event.edit("Error: @tgscanrobot unblock and retry!")
elif LEGENDX == "":
OP = await event.get_reply_message()
PRO = OP.sender.id
async with borg.conversation(PROBOY) as conv:
try: #made by LEGENDX22 🔥
#made by LEGENDX22
await event.edit(f"THIS USER DETAILS CHECKING BY {LEGEND}")
await conv.send_message("/start")
await conv.get_response() #made by LEGENDX22
await conv.send_message(f"{PRO}")
TEAMX = await conv.get_response()
await borg.send_message(event.chat_id, TEAMX.text)
await event.delete()
except YouBlockedUserError: #made by LEGENDX22
await event.edit("Error: unblock @tgscanrobot and try again!")
else:
async with borg.conversation(PROBOY) as conv:
try: #made by LEGENDX22 🔥
await event.edit(f"THIS USER DETAILS CHECKING BY {LEGEND}")
await conv.send_message("/start")
await conv.get_response()
await conv.send_message(f"{PRO}")
TEAMX = await conv.get_response()
await borg.send_message(event.chat_id, TEAMX.text)
await event.delete()
except YouBlockedUserError:
await event.edit("Error: unblock @tgscanrobot `and try again!")
CMD_HELP.update({
"ginfo ":"type .ginfo <@username> or tag a user type .ginfo 🔥"})