Skip to content

Commit

Permalink
Umm
Browse files Browse the repository at this point in the history
  • Loading branch information
AnonymousX1025 authored Jan 30, 2023
1 parent 5e9b34e commit 19b3f26
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions StringGenBot/callbacks.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from StringGenBot.generate import generate_session, ask_ques, buttons_ques


@Client.on_callback_query(filters.regex(pattern=r"^(generate|pyrogram|pyrogram1|pyrogram_bot|telethon_bot|telethon)$"))
@Client.on_callback_query(filters.regex(pattern=r"^(generate|pyrogram|pyrogram_bot|telethon_bot|telethon)$"))
async def _callbacks(bot: Client, callback_query: CallbackQuery):
query = callback_query.matches[0].group(1)
if query == "generate":
Expand All @@ -17,9 +17,6 @@ async def _callbacks(bot: Client, callback_query: CallbackQuery):
if query == "pyrogram":
await callback_query.answer()
await generate_session(bot, callback_query.message)
elif query == "pyrogram1":
await callback_query.answer()
await generate_session(bot, callback_query.message, old_pyro=True)
elif query == "pyrogram_bot":
await callback_query.answer("» ᴛʜᴇ sᴇssɪᴏɴ ɢᴇɴᴇʀᴀᴛᴇᴅ ᴡɪʟʟ ʙᴇ ᴏғ ᴩʏʀᴏɢʀᴀᴍ ᴠ2.", show_alert=True)
await generate_session(bot, callback_query.message, is_bot=True)
Expand Down

0 comments on commit 19b3f26

Please sign in to comment.