Skip to content

Commit

Permalink
Update pm_filter.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Tanjiroop authored Aug 11, 2024
1 parent d76e95b commit 28f80e6
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions plugins/pm_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -586,6 +586,8 @@ async def cb_handler(client: Client, query: CallbackQuery):
InlineKeyboardButton('Eɴʜᴀɴᴄᴇ ', callback_data='enhance'),
InlineKeyboardButton('Tᴇʟᴇɢʀᴀᴘʜ ', callback_data='telegraph'),
InlineKeyboardButton('Sᴏɴɢ ', callback_data='song')
], [
InlineKeyboardButton('Qʀ ᴄᴏᴅᴇ ', callback_data='qr')
], [
InlineKeyboardButton('⇌ Bᴀᴄᴋ ⇌', callback_data='help')
]]
Expand All @@ -600,6 +602,21 @@ async def cb_handler(client: Client, query: CallbackQuery):
reply_markup=reply_markup,
parse_mode=enums.ParseMode.HTML
)
elif query.data == "qr":
buttons = [[
InlineKeyboardButton('⇌ Bᴀᴄᴋ ⇌', callback_data='helpps')
]]
reply_markup = InlineKeyboardMarkup(buttons)
await client.edit_message_media(
query.message.chat.id,
query.message.id,
InputMediaPhoto(random.choice(PICS))
)
await query.message.edit_text(
text=script.QRCODE,
reply_markup=reply_markup,
parse_mode=enums.ParseMode.HTML
)
elif query.data == "song":
buttons = [[
InlineKeyboardButton('⇌ Bᴀᴄᴋ ⇌', callback_data='helpps')
Expand Down

0 comments on commit 28f80e6

Please sign in to comment.