-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyro.py
332 lines (310 loc) ยท 20.2 KB
/
pyro.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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
import os
import json
import time
import asyncio
from asyncio.exceptions import TimeoutError
from pyromod import listen
from pyrogram.types import(
Message,
InlineKeyboardMarkup,
InlineKeyboardButton
)
from pyrogram.errors import(
FloodWait,
ApiIdInvalid,
PhoneCodeExpired,
PhoneCodeInvalid,
UserNotParticipant,
PhoneNumberInvalid,
SessionPasswordNeeded
)
from pyrogram import filters
from pyrogram import Client
from pyrogram.errors.exceptions.bad_request_400 import(
PeerIdInvalid,
ChatAdminRequired,
UserNotParticipant,
UsernameNotOccupied
)
from Ultron import Var
from Ultron import Ultron
SUPPORT = Var.SUPPORT
SUPPORT_GROUP = Var.SUPPORT_GROUP
support = SUPPORT
group = SUPPORT_GROUP
bot = "@UltronPyro_Bot"
bot_name = "UltronPyro_Bot"
owner = "Warning_MadBoy_is_Back"
dev = "ItS_PRaNAv_Xd"
GREETING = """๐๐ป **๐ฏ๐๐๐!! {}**, ๐ฐโ๐ **PสสแดGสแดแด Sแดสษชษดษข Sแดssษชแดษด Gแดษดแดสแดแดแดส**\n๐ฐ ๐๐๐ ๐๐๐๐ ๐๐๐ ๐๐ ๐๐๐๐๐๐๐๐ ๐ ๐ท๐๐๐๐ฎ๐๐๐ ๐บ๐๐๐๐๐ ๐บ๐๐๐๐๐๐ ๐๐๐ ๐๐๐๐ ๐ป๐๐๐๐๐๐๐ ๐จ๐๐๐๐๐๐ ๐๐ ๐๐ ๐ฌ๐๐๐ ๐พ๐๐...\n\n๐ท๐๐๐๐๐ ๐๐๐๐
๐๐๐๐ `๐ผ๐๐_๐๐ฟ` ๐๐๐ ๐๐๐๐๐๐๐๐๐๐ ๐๐๐๐ ๐บ๐๐๐๐๐๐.\n๐ฎ๐๐ ๐๐๐๐ ๐๐๐๐๐ ๐๐๐๐ **[๐๐๐ง๐](https://my.telegram.org)**."""
HASH = """**__Nแดแดแดแด
!!__**\n\n๐ต๐๐ ๐๐๐๐
๐๐๐๐ `๐ผ๐๐_๐๐ผ๐๐` ๐๐ ๐๐๐
๐๐ ๐๐ ๐๐๐๐๐๐๐๐.\n๐ฎ๐๐ ๐๐๐๐ ๐๐๐๐๐ ๐๐๐๐ **[๐๐๐ง๐](https://my.telegram.org)**.\n\n๐๐๐ ๐๐๐ ๐๐๐๐๐ /cancel ๐๐ ๐๐๐ ๐
๐๐โ๐ ๐๐๐๐๐ ๐๐๐๐๐๐๐๐ ๐๐๐๐ ๐๐๐ ๐๐๐๐๐๐๐."""
NUMBER = """**__Nแดแดแดแด
!!__**\n\n๐ต๐๐ ๐๐๐๐
๐๐๐๐ `๐๐๐ก๐๐๐ง๐๐ข ๐ผ๐๐๐ค๐ช๐ฃ๐ฉโ๐จ ๐๐๐ค๐ฃ๐ ๐๐ช๐ข๐๐๐ง` ๐๐ ๐๐๐
๐๐ ๐๐ ๐๐๐๐๐๐๐๐ ๐๐๐๐๐๐๐.\n**๐ท๐๐๐๐๐ ๐๐๐๐ ๐๐๐ ๐๐๐๐๐๐๐๐๐ ๐๐๐๐๐๐ ๐๐๐๐๐๐ ๐๐๐๐๐๐๐๐ ๐๐๐๐ ๐ท๐๐๐๐ ๐ต๐๐๐๐๐ :**\n\n- ๐๐๐ ๐ ๐จ๐ช๐ง๐ ๐ฉ๐๐๐ฉ ๐ฉ๐๐ ๐ฃ๐ช๐ข๐๐๐ง ๐ฎ๐ค๐ชโ๐ง๐ ๐๐ฃ๐ฉ๐๐ง๐๐ฃ๐ ๐๐ญ๐๐จ๐ฉ๐จ ๐ฌ๐๐ฉ๐ ๐ ๐๐๐ก๐๐๐ง๐๐ข ๐ผ๐๐๐ค๐ช๐ฃ๐ฉ.\n- ๐๐๐ ๐ ๐จ๐ช๐ง๐ ๐ฉ๐๐๐ฉ ๐ฉ๐๐ ๐ฃ๐ช๐ข๐๐๐ง ๐๐ฃ๐ฉ๐๐ง๐๐ ๐๐จ ๐๐ฃ ๐๐ฃ๐ฉ๐๐ง๐ฃ๐๐ฉ๐๐ค๐ฃ๐๐ก ๐๐ค๐ง๐ข๐๐ฉ, **๐๐ญ:~** `+91 69696 96969` ๐ค๐ง `+1 96969 69696` ๐ค๐ง ๐๐ฃ๐ฎ ๐ค๐ฉ๐๐๐ง ๐พ๐ค๐ช๐ฃ๐ฉ๐ง๐ฎ ๐พ๐ค๐๐\n- ๐ฟ๐ค๐ฃโ๐ฉ ๐จ๐ฉ๐๐๐ก ๐๐ฃ๐ฎ๐ค๐ฃ๐โ๐จ ๐๐ก๐จ๐ ๐ฃ๐ช๐ข๐๐๐ง.\n\n๐๐๐ ๐๐๐ ๐๐๐๐๐ /cancel ๐๐ ๐๐๐ ๐
๐๐โ๐ ๐๐๐๐๐ ๐๐๐๐๐๐๐๐ ๐๐๐๐ ๐๐๐ ๐๐๐๐๐๐๐."""
CONFIRMATION = """**__Nแดแดแดแด
!!__**\n\n๐ฉ๐๐ ๐๐๐๐๐๐ ๐๐๐๐๐ ๐๐๐๐๐
, ๐ฐ ๐๐๐๐
๐๐๐ ๐๐๐๐๐๐๐๐๐๐๐๐ ๐๐๐๐ ๐๐ ๐๐๐ ๐๐๐๐๐๐
๐๐
`๐๐๐ค๐ฃ๐ ๐๐ช๐ข๐๐๐ง` ๐๐ ๐๐๐๐๐๐๐ ๐๐ ๐๐๐!!\n\n- ๐๐ ๐ฉ๐๐ `๐๐๐ค๐ฃ๐ ๐๐ช๐ข๐๐๐ง` ๐๐จ ๐๐ค๐ง๐ง๐๐๐ฉ:\nSแดษดแด
`y`\n\n- ๐๐ก๐จ๐:\nSแดษดแด
`n`\n\n๐๐๐ ๐๐๐ ๐๐๐๐๐ /cancel ๐๐ ๐๐๐ ๐
๐๐โ๐ ๐๐๐๐๐ ๐๐๐๐๐๐๐๐ ๐๐๐๐ ๐๐๐ ๐๐๐๐๐๐๐."""
OTP = """**__Nแดแดแดแด
!!__**\n\n๐จ๐ `๐๐๐` ๐๐๐ ๐๐๐๐ ๐๐ ๐๐๐๐ `๐๐๐ค๐ฃ๐ ๐๐ช๐ข๐๐๐ง`,\n๐ท๐๐๐๐๐ ๐๐๐๐๐ ๐๐๐ `๐๐๐` ๐๐ ๐๐๐ ๐๐๐๐๐๐๐๐๐ ๐๐๐๐๐๐ :~ `1 2 3 4 5` __(๐๐ฅ๐๐๐ ๐๐๐ฉ๐ฌ๐๐๐ฃ ๐๐๐๐ ๐ฃ๐ช๐ข๐๐๐ง.)__\n\n๐ฐ๐ ๐๐๐ ๐๐๐๐๐โ๐ ๐๐๐๐๐๐๐๐
๐๐๐ `๐๐๐`, ๐๐๐๐ ๐๐๐ ๐๐๐
๐ฎ๐-๐จ๐๐๐๐
๐๐๐๐๐๐๐๐ ๐๐๐ ๐๐๐๐๐๐๐ ๐๐๐๐๐ ๐๐๐๐ /start ๐๐๐๐๐๐๐
.\n\n๐๐๐ ๐๐๐ ๐๐๐๐๐ /cancel ๐๐ ๐๐๐ ๐
๐๐โ๐ ๐๐๐๐๐ ๐๐๐๐๐๐๐๐ ๐๐๐๐ ๐๐๐ ๐๐๐๐๐๐๐."""
TWO_STEP_VERIFICATION = """**__Nแดแดแดแด
!!__**\n\n๐๐๐โ๐๐ ๐๐๐๐๐๐๐
๐๐๐ `๐๐ฌ๐ค-๐๐ฉ๐๐ฅ ๐๐๐ง๐๐๐๐๐๐ฉ๐๐ค๐ฃ` ๐๐๐ ๐๐๐๐ ๐๐๐๐๐๐๐.\n๐ท๐๐๐๐๐ ๐๐๐๐๐ ๐๐๐๐ `๐๐ฌ๐ค-๐๐ฉ๐๐ฅ ๐๐๐จ๐จ๐ฌ๐ค๐ง๐`\n\n๐๐๐ ๐๐๐ ๐๐๐๐๐ /cancel ๐๐ ๐๐๐ ๐
๐๐โ๐ ๐๐๐๐๐ ๐๐๐๐๐๐๐๐ ๐๐๐๐ ๐๐๐ ๐๐๐๐๐๐๐."""
@Ultron.on_message(filters.private & filters.command("start"))
async def string(_, msg: Message):
if msg.chat.id in Var.BANNED:
await Ultron.send_message(
chat_id=msg.chat.id,
text="๐บ๐๐๐๐, ๐ฉ๐๐ ๐๐๐๐๐๐
๐๐๐ ๐๐ ๐๐ ๐๐๐โ๐๐ ๐ฉ๐๐๐๐๐
.\n๐ช๐๐๐๐๐๐ ๐๐ ๐๐ช๐ฅ๐ฅ๐ค๐ง๐ฉ ๐๐ง๐ค๐ช๐ฅ ๐๐๐ ๐๐๐๐ ๐ฐ๐๐๐.",
reply_to_message_id=msg.message_id,
reply_markup=InlineKeyboardMarkup
(
[
[
InlineKeyboardButton
(
"๐ฑ Sแดแดแดแดสแด Gสแดแดแด ๐ฑ", url=f"https://t.me/{group}"
)
]
]
),
parse_mode="markdown"
)
return
if support:
try:
user = await Ultron.get_chat_member(support, msg.chat.id)
if user.status == "kicked":
await Ultron.send_message(
chat_id=msg.chat.id,
text="๐บ๐๐๐๐, ๐ฉ๐๐ ๐๐๐๐๐๐
๐๐๐ ๐๐ ๐๐ ๐๐๐โ๐๐ ๐ฉ๐๐๐๐๐
.\n๐ช๐๐๐๐๐๐ ๐๐ ๐๐ช๐ฅ๐ฅ๐ค๐ง๐ฉ ๐๐ง๐ค๐ช๐ฅ ๐๐๐ ๐๐๐๐ ๐ฐ๐๐๐.",
reply_to_message_id=msg.message_id,
reply_markup=InlineKeyboardMarkup
(
[
[
InlineKeyboardButton
(
"๐ฑ Sแดแดแดแดสแด Gสแดแดแด ๐ฑ", url=f"https://t.me/{group}"
)
]
]
),
parse_mode="markdown"
)
return
except UserNotParticipant:
await Ultron.send_message(
chat_id=msg.chat.id,
text="**๐๐๐โ๐๐ ๐๐ ๐๐๐๐ ๐๐ ๐บ๐๐๐๐๐๐ ๐ช๐๐๐๐๐๐ ๐๐ ๐๐๐
๐๐ ๐๐ ๐๐๐ ๐๐.**",
reply_to_message_id=msg.message_id,
reply_markup=InlineKeyboardMarkup
(
[
[
InlineKeyboardButton
(
"โ๏ธ Jแดษชษด Sแดแดแดแดสแด Cสแดษดษดแดส โ๏ธ", url=f"https://t.me/{support}"
)
]
]
),
parse_mode="markdown"
)
return
except Exception:
await Ultron.send_message(
chat_id=msg.chat.id,
text="**๐๐๐๐๐๐๐๐๐ ๐3๐๐ ๐๐๐๐๐ !!\n๐ช๐๐๐๐๐๐ ๐๐ ๐๐ช๐ฅ๐ฅ๐ค๐ง๐ฉ ๐๐ง๐ค๐ช๐ฅ ๐๐๐ ๐๐๐๐ ๐ฐ๐๐๐.**",
reply_to_message_id=msg.message_id,
reply_markup=InlineKeyboardMarkup
(
[
[
InlineKeyboardButton
(
"๐ฑ Sแดแดแดแดสแด Gสแดแดแด ๐ฑ", url=f"https://t.me/{group}"
)
]
]
),
parse_mode="markdown"
)
return
chat = msg.chat
# Getting API_ID
api = await Ultron.ask(
chat.id, GREETING.format(msg.from_user.mention), disable_web_page_preview=True,
)
if await is_cancel(msg, api.text):
return
try:
# Checking API_ID
check_api = int(api.text)
except Exception:
await msg.reply("`๐ผ๐๐_๐๐ฟ` ๐๐ ๐ฐ๐๐๐๐๐๐
.\n๐ท๐๐๐๐ /start ๐๐ ๐๐๐๐๐ ๐๐๐ ๐๐๐๐๐๐๐ ๐๐๐๐๐.")
return
# Storing API_ID for Session
api_id = api.text
# Getting API_HASH
hash = await Ultron.ask(
chat.id, HASH, disable_web_page_preview=True
)
if await is_cancel(msg, hash.text):
return
# Checking API_HASH
if not len(hash.text) >= 30:
await msg.reply("`๐ผ๐๐_๐๐ผ๐๐` ๐๐ ๐ฐ๐๐๐๐๐๐
.\n๐ท๐๐๐๐ /start ๐๐ ๐๐๐๐๐ ๐๐๐ ๐๐๐๐๐๐๐ ๐๐๐๐๐.")
return
# Storing API_HASH for Session
api_hash = hash.text
# If API_HASH is Valid
while True:
# Getting Phone Number
number = await Ultron.ask(
chat.id, NUMBER
)
if not number.text:
continue
if await is_cancel(msg, number.text):
return
phone = number.text
# Confirming if provided Number is Correct
confirm = await Ultron.ask(
chat.id, CONFIRMATION
)
if await is_cancel(msg, confirm.text):
return
if "y" in confirm.text:
break
try:
session = Client("Ultron_PyroSession", api_id=api_id, api_hash=api_hash)
except Exception as e:
await Ultron.send_message(chat.id, f"**๐๐๐๐๐ :** `{str(e)}`\n๐ท๐๐๐๐ /start ๐๐ ๐๐๐๐๐ ๐๐๐ ๐๐๐๐๐๐๐ ๐๐๐๐๐.")
return
try:
await session.connect()
except ConnectionError:
await session.disconnect()
await session.connect()
try:
code = await session.send_code(phone)
await asyncio.sleep(1)
except FloodWait as e:
await msg.reply(f"๐๐๐ ๐๐๐๐
๐๐ ๐๐๐๐, ๐๐ ๐๐๐ ๐๐๐ ๐ ๐ญ๐๐๐๐
๐พ๐๐๐ ๐๐ {e.x} ๐บ๐๐๐๐๐
๐ !!")
return
except ApiIdInvalid:
await msg.reply("`๐ผ๐๐_๐๐ฟ` ๐๐๐
`๐ผ๐๐_๐๐ผ๐๐` ๐๐๐ ๐ฐ๐๐๐๐๐๐
.\n๐ท๐๐๐๐ /start ๐๐ ๐๐๐๐๐ ๐๐๐ ๐๐๐๐๐๐๐ ๐๐๐๐๐.")
return
except PhoneNumberInvalid:
await msg.reply("๐ป๐๐ ๐๐๐๐๐๐
๐๐
๐ท๐๐๐๐ ๐ต๐๐๐๐๐ ๐๐ ๐ฐ๐๐๐๐๐๐
.\n๐ท๐๐๐๐ /start ๐๐ ๐๐๐๐๐ ๐๐๐ ๐๐๐๐๐๐๐ ๐๐๐๐๐.")
return
try:
otp = await Ultron.ask(
chat.id, OTP, timeout=300
)
except TimeoutError:
await msg.reply("๐บ๐๐๐๐, ๐๐๐โ๐๐ ๐๐๐๐๐๐๐
๐๐๐ ๐ป๐๐๐ ๐ณ๐๐๐๐ ๐๐ 5 ๐๐๐๐๐๐๐.\n๐ท๐๐๐๐ /start ๐๐ ๐๐๐๐๐ ๐๐๐ ๐๐๐๐๐๐๐ ๐๐๐๐๐.")
return
if await is_cancel(msg, otp.text):
return
otp_code = otp.text
try:
await session.sign_in(phone, code.phone_code_hash, phone_code=' '.join(str(otp_code)))
except PhoneCodeInvalid:
await msg.reply("๐ฐ๐๐๐๐๐๐
๐ถ๐ป๐ท ๐๐๐๐๐๐
๐๐
.\n๐ท๐๐๐๐ /start ๐๐ ๐๐๐๐๐ ๐๐๐ ๐๐๐๐๐๐๐ ๐๐๐๐๐.")
return
except PhoneCodeExpired:
await msg.reply("๐ป๐๐ ๐ถ๐ป๐ท ๐๐๐
๐ ๐๐๐ ๐๐๐๐ ๐๐๐๐๐๐๐
.\n๐ท๐๐๐๐ /start ๐๐ ๐๐๐๐๐ ๐๐๐ ๐๐๐๐๐๐๐ ๐๐๐๐๐.")
return
except SessionPasswordNeeded:
try:
two_step_code = await Ultron.ask(
chat.id, TWO_STEP_VERIFICATION, timeout=300
)
except TimeoutError:
await msg.reply("๐บ๐๐๐๐, ๐๐๐โ๐๐ ๐๐๐๐๐๐๐
๐๐๐ ๐ป๐๐๐ ๐ณ๐๐๐๐ ๐๐ 5 ๐๐๐๐๐๐๐.\n๐ท๐๐๐๐ /start ๐๐ ๐๐๐๐๐ ๐๐๐ ๐๐๐๐๐๐๐ ๐๐๐๐๐.")
return
if await is_cancel(msg, two_step_code.text):
return
new_code = two_step_code.text
try:
await session.check_password(new_code)
return
except Exception as e:
await msg.reply(f"**๐๐๐๐๐ :** `{str(e)}`")
return
except Exception as e:
await Ultron.send_message(chat.id, f"**๐๐๐๐๐ :** `{str(e)}`")
return
try:
pyro_session = await session.export_session_string()
await session.send_message("me", f"""**๐ ๐ฏ๐๐๐ ๐๐ ๐๐๐๐ ๐ท๐๐๐๐ฎ๐๐๐ ๐บ๐๐๐๐๐ ๐บ๐๐๐๐๐๐ ๐**\n๐ฎ๐๐๐๐๐๐๐๐
๐๐๐๐๐ [{bot}](https://t.me/{bot_name})\n\n```{pyro_session}```\n\n**๐ ๐ป๐๐ ๐๐ ๐ช๐๐๐ ๐**\n#PyroGram #Session #Ultron""", disable_web_page_preview=True)
await session.disconnect()
text = "๐๐๐๐ ๐ท๐๐๐๐ฎ๐๐๐ ๐บ๐๐๐๐๐๐ ๐๐๐ ๐๐๐๐๐๐๐๐๐
๐บ๐๐๐๐๐๐๐๐๐๐๐.โ
\n๐ป๐๐ ๐ฉ๐๐๐๐ ๐๐ ๐๐๐ ๐๐.๐"
chat = msg.chat
await Ultron.send_message(chat.id, text, reply_markup=InlineKeyboardMarkup
(
[
[
InlineKeyboardButton
(
"๐ผ Gแดแด Sแดสษชษดษข Sแดssษชแดษด ๐ผ", url=f"tg://openmessage?user_id={chat.id}"
)
]
]
)
)
except Exception as e:
await Ultron.send_message(chat.id, f"****๐๐๐๐๐ :** `{str(e)}`")
return
@Ultron.on_message(filters.private & filters.command("restart"))
async def restart(_, msg: Message):
if msg.from_user.id == 1732236209:
await msg.reply("๐น๐๐๐๐๐๐๐๐
๐๐๐ ๐ฉ๐๐ ๐บ๐๐๐๐๐๐๐๐๐๐๐โโ")
return Var.HEROKU_APP.restart()
@Ultron.on_message(filters.private & filters.command("help"))
async def help(_, msg: Message):
help_text = f"""
**๐ฏ๐!! {msg.from_user.mention}**\n๐ฐโ๐ **PสสแดGสแดแด Sแดสษชษดษข Sแดssษชแดษด Gแดษดแดสแดแดแดส**\n\n๐ฐ ๐๐๐ ๐๐๐๐ ๐๐๐ ๐๐ ๐๐๐๐๐๐๐๐ ๐ ๐ท๐๐๐๐ฎ๐๐๐ ๐บ๐๐๐๐๐ ๐บ๐๐๐๐๐๐ ๐๐๐ ๐๐๐๐ ๐ป๐๐๐๐๐๐๐ ๐จ๐๐๐๐๐๐ ๐๐ ๐๐ ๐ฌ๐๐๐ ๐พ๐๐... \n
- ๐บ๐๐๐๐๐๐ ๐๐๐๐๐๐๐๐๐๐ ๐๐๐๐๐๐๐๐ ๐๐๐๐ `๐ผ๐๐_๐๐ฟ`, `๐ผ๐๐_๐๐ผ๐๐`, `๐๐๐ค๐ฃ๐ ๐๐ช๐ข๐๐๐ง ๐ค๐ ๐๐๐ก๐๐๐ง๐๐ข ๐ผ๐๐๐ค๐ช๐ฃ๐ฉ`, `๐๐๐`, ๐๐๐
`๐๐ฌ๐ค-๐๐ฉ๐๐ฅ ๐๐๐ง๐๐๐๐๐๐ฉ๐๐ค๐ฃ ๐๐๐จ๐จ๐ฌ๐ค๐ง๐` (ษชา แดษดส). \n
- `๐๐๐` ๐๐๐๐ ๐๐ ๐๐๐๐ ๐๐ ๐๐๐ ๐๐๐๐๐๐๐ ๐๐๐๐ ๐ด๐๐๐๐๐ ๐ท๐๐๐๐ ๐๐ ๐๐๐ ๐ป๐๐๐๐๐๐๐ ๐จ๐๐. \
๐๐๐ ๐๐๐๐
๐๐ ๐๐๐๐๐ ๐๐๐ `๐๐๐` ๐๐ ๐๐๐ ๐๐๐๐๐๐๐๐๐ ๐๐๐๐๐๐ :~ `1 2 3 4 5` __(๐๐ฅ๐๐๐ ๐๐๐ฉ๐ฌ๐๐๐ฃ ๐๐๐๐ ๐ฃ๐ช๐ข๐๐๐ง.)__ \n
- ๐ฐ๐ ๐๐๐ ๐๐๐๐๐โ๐ ๐๐๐๐๐๐๐๐
๐๐๐ `๐๐๐`, ๐๐๐๐ ๐๐๐ ๐๐๐
๐ฎ๐-๐จ๐๐๐๐
๐๐๐๐๐๐๐๐ ๐๐๐ ๐๐๐๐๐๐๐ ๐๐๐๐๐ ๐๐๐๐ /start ๐๐๐๐๐๐๐
\n\n
**Nแดแดแด :~ ๐๐๐ ๐๐๐๐ ๐๐๐๐
๐๐ ๐ฑ๐๐๐ ๐๐๐ ๐บ๐๐๐๐๐๐ ๐ช๐๐๐๐๐๐ ๐๐๐ ๐๐๐๐ ๐ฉ๐๐ ๐๐ ๐๐๐
๐๐ ๐๐ ๐๐๐ ๐๐.**
"""
chat = msg.chat
await Ultron.send_message(
chat_id=chat.id,
text=help_text,
reply_to_message_id=msg.message_id,
reply_markup=InlineKeyboardMarkup
(
[
[
InlineKeyboardButton
(
"โ๏ธ Sแดแดแดแดสแด Cสแดษดษดแดส โ๏ธ", url=f"https://t.me/{support}"
),
InlineKeyboardButton
(
"๐ฑ Sแดแดแดแดสแด Gสแดแดแด ๐ฑ", url=f"https://t.me/{group}"
)
],
[
InlineKeyboardButton
(
"๐ฐ Oแดกษดแดส ๐ฐ", url=f"https://t.me/{owner}"
),
InlineKeyboardButton
(
"๐ DEV ๐ ", url=f"https://t.me/{dev}"
)
]
]
)
)
async def is_cancel(msg: Message, text: str):
if text.startswith("/cancel"):
chat = msg.chat
await Ultron.send_message(
chat_id=chat.id,
text="๐ท๐๐๐๐๐๐ ๐ช๐๐๐๐๐๐๐๐
๐บ๐๐๐๐๐๐๐๐๐๐๐",
reply_to_message_id=msg.message_id
)
return True
return False
if __name__ == "__main__":
Ultron.run()