Upload callback.py
Browse files- akn/manage/callback.py +70 -0
akn/manage/callback.py
CHANGED
@@ -30,6 +30,17 @@ from akn import gemini_bot_id
|
|
30 |
|
31 |
from box import Box
|
32 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
USERBOT_UPDATE_TEXT = """
|
34 |
**Akeno Userbot**
|
35 |
|
@@ -269,6 +280,61 @@ async def cb_banned_and_key(client, query):
|
|
269 |
reply_markup=keyboard_back
|
270 |
)
|
271 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
272 |
@ren.on_callback_query(filters.regex("^customzie_bot"))
|
273 |
async def cb_customiz_bot(client, query):
|
274 |
if not await db_client.get_privacy_policy(query.from_user.id):
|
@@ -945,6 +1011,10 @@ async def callback_next(client, cb: CallbackQuery):
|
|
945 |
text="π Documentation",
|
946 |
url="https://github.com/TeamKillerX/akenoai-lib",
|
947 |
),
|
|
|
|
|
|
|
|
|
948 |
],
|
949 |
[
|
950 |
InlineKeyboardButton(
|
|
|
30 |
|
31 |
from box import Box
|
32 |
|
33 |
+
BOTS_LIST_POPULER = """
|
34 |
+
π₯ **Hidden Gem Bots** π₯
|
35 |
+
These underrated bots pack powerful features while maintaining strict security standards:
|
36 |
+
|
37 |
+
π€ **@aknuserbot**
|
38 |
+
βΈ AI-powered Swiss Army knife
|
39 |
+
βΈ Secure session management
|
40 |
+
βΈ 50+ tools in one place
|
41 |
+
**Type:** Multipurpose | **Lang:** Python
|
42 |
+
"""
|
43 |
+
|
44 |
USERBOT_UPDATE_TEXT = """
|
45 |
**Akeno Userbot**
|
46 |
|
|
|
280 |
reply_markup=keyboard_back
|
281 |
)
|
282 |
|
283 |
+
@ren.on_callback_query(filters.regex("^bots_popular$"))
|
284 |
+
async def cb_bots_popular(client, query):
|
285 |
+
if not await db_client.get_privacy_policy(query.from_user.id):
|
286 |
+
return await query.answer("You must agree to the privacy policy first.", True)
|
287 |
+
keyboard_back = InlineKeyboardMarkup(
|
288 |
+
[
|
289 |
+
[
|
290 |
+
InlineKeyboardButton(
|
291 |
+
"@MagicStylish_Bot",
|
292 |
+
url="https://t.me/MagicStylish_Bot"
|
293 |
+
),
|
294 |
+
InlineKeyboardButton(
|
295 |
+
"@tiktokbeta_dl_bot",
|
296 |
+
url="https://t.me/tiktokbeta_dl_bot"
|
297 |
+
)
|
298 |
+
],
|
299 |
+
[
|
300 |
+
InlineKeyboardButton(
|
301 |
+
"@UserApproveCaptchaBot",
|
302 |
+
url="https://t.me/UserApproveCaptchaBot"
|
303 |
+
),
|
304 |
+
InlineKeyboardButton(
|
305 |
+
"@SessionDevBot",
|
306 |
+
url="https://t.me/SessionDevBot"
|
307 |
+
)
|
308 |
+
],
|
309 |
+
[
|
310 |
+
InlineKeyboardButton(
|
311 |
+
"@ryuzaki_asstbot",
|
312 |
+
url="https://t.me/ryuzaki_asstbot"
|
313 |
+
),
|
314 |
+
InlineKeyboardButton(
|
315 |
+
"@AzreaDev_Bot",
|
316 |
+
url="https://t.me/AzreaDev_Bot"
|
317 |
+
)
|
318 |
+
],
|
319 |
+
[
|
320 |
+
InlineKeyboardButton(
|
321 |
+
"Credits Developer",
|
322 |
+
url="https://t.me/xtdevs"
|
323 |
+
)
|
324 |
+
],
|
325 |
+
[
|
326 |
+
InlineKeyboardButton(
|
327 |
+
"Back",
|
328 |
+
callback_data="contet"
|
329 |
+
)
|
330 |
+
]
|
331 |
+
]
|
332 |
+
)
|
333 |
+
return await query.edit_message_text(
|
334 |
+
text=BOTS_LIST_POPULER,
|
335 |
+
reply_markup=keyboard_back
|
336 |
+
)
|
337 |
+
|
338 |
@ren.on_callback_query(filters.regex("^customzie_bot"))
|
339 |
async def cb_customiz_bot(client, query):
|
340 |
if not await db_client.get_privacy_policy(query.from_user.id):
|
|
|
1011 |
text="π Documentation",
|
1012 |
url="https://github.com/TeamKillerX/akenoai-lib",
|
1013 |
),
|
1014 |
+
InlineKeyboardButton(
|
1015 |
+
text="β Bots popular",
|
1016 |
+
callback_data="bots_popular",
|
1017 |
+
),
|
1018 |
],
|
1019 |
[
|
1020 |
InlineKeyboardButton(
|