forked from TeamUltroid/UltroidAddons
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbin.py
More file actions
96 lines (84 loc) · 3.73 KB
/
bin.py
File metadata and controls
96 lines (84 loc) · 3.73 KB
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
from telethon import events
from telethon.errors.rpcerrorlist import YouBlockedUserError
from telethon.tl.functions.account import UpdateNotifySettingsRequest
from userbot.utils import admin_cmd as danish_00
@bot.on(danish_00(pattern="bin ?(.*)"))
async def _(event):
if event.fwd_from:
return
danish = event.pattern_match.group(1)
chat = "@Carol5_bot"
await event.edit("Searching ur bin 😅😁...")
async with event.client.conversation(chat) as conv:
try:
response = conv.wait_event(events.NewMessage(incoming=True,from_users=1247032902))
await event.client.send_message(chat, "/bin {}".format(danish))
response = await response
except YouBlockedUserError:
await event.reply("Boss! Please Unblock @Carol5_bot ")
return
if response.text.startswith(" "):
await event.edit("That bot is dead bro now this cmd is useless 😂😂")
else:
await event.delete()
await event.client.send_message(event.chat_id, response.message)
@bot.on(danish_00(pattern="vbv ?(.*)"))
async def _(event):
if event.fwd_from:
return
danish = event.pattern_match.group(1)
chat = "@Carol5_bot"
await event.edit("Connecting...")
async with event.client.conversation(chat) as conv:
try:
response = conv.wait_event(events.NewMessage(incoming=True,from_users=1247032902))
await event.client.send_message(chat, "/vbv {}".format(danish))
response = await response
except YouBlockedUserError:
await event.reply("Boss! Please Unblock @Carol5_bot ")
return
if response.text.startswith(" "):
await event.edit("That bot is dead bro now this cmd is useless 😂😂")
else:
await event.delete()
await event.client.send_message(event.chat_id, response.message)
@bot.on(danish_00(pattern="key ?(.*)"))
async def _(event):
if event.fwd_from:
return
danish = event.pattern_match.group(1)
chat = "@Carol5_bot"
await event.edit("Connecting...")
async with event.client.conversation(chat) as conv:
try:
response = conv.wait_event(events.NewMessage(incoming=True,from_users=1247032902))
await event.client.send_message(chat, "/key {}".format(danish))
response = await response
except YouBlockedUserError:
await event.reply("Boss! Please Unblock @Carol5_bot ")
return
if response.text.startswith(" "):
await event.edit("That bot is dead bro now this cmd is useless 😂😂")
else:
await event.delete()
await event.client.send_message(event.chat_id, response.message)
@bot.on(danish_00(pattern="iban ?(.*)"))
async def _(event):
if event.fwd_from:
return
danish = event.pattern_match.group(1)
chat = "@Carol5_bot"
await event.edit("Connecting...")
async with event.client.conversation(chat) as conv:
try:
response = conv.wait_event(events.NewMessage(incoming=True,from_users=1247032902))
await event.client.send_message(chat, "/iban {}".format(danish))
response = await response
except YouBlockedUserError:
await event.reply("Boss! Please Unblock @Carol5_bot ")
return
if response.text.startswith(" "):
await event.edit("That bot is dead bro now this cmd is useless 😂😂")
else:
await event.delete()
await event.client.send_message(event.chat_id, response.message)