diff --git a/plugins/pm_filter.py b/plugins/pm_filter.py index d5433c7..2872fe4 100644 --- a/plugins/pm_filter.py +++ b/plugins/pm_filter.py @@ -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') ]] @@ -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')