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 4a16f2a commit 8c14769
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions plugins/pm_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -584,6 +584,8 @@ async def cb_handler(client: Client, query: CallbackQuery):
InlineKeyboardButton('Cᴀʀʙᴏɴ ', callback_data='carbon'),
], [
InlineKeyboardButton('Eɴʜᴀɴᴄᴇ ', callback_data='enhance'),
InlineKeyboardButton('Tᴇʟᴇɢʀᴀᴘʜ ', callback_data='telegraph'),
InlineKeyboardButton('Sᴏɴɢ ', callback_data='song')
], [
InlineKeyboardButton('⇌ Bᴀᴄᴋ ⇌', callback_data='help')
]]
Expand All @@ -598,6 +600,36 @@ async def cb_handler(client: Client, query: CallbackQuery):
reply_markup=reply_markup,
parse_mode=enums.ParseMode.HTML
)
elif query.data == "song":
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.SONG,
reply_markup=reply_markup,
parse_mode=enums.ParseMode.HTML
)
elif query.data == "telegraph":
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.TELEGRAPH,
reply_markup=reply_markup,
parse_mode=enums.ParseMode.HTML
)
elif query.data == "enhance":
buttons = [[
InlineKeyboardButton('⇌ Bᴀᴄᴋ ⇌', callback_data='helpps')
Expand Down

0 comments on commit 8c14769

Please sign in to comment.