Skip to content

Commit

Permalink
Update pmfilter.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Codeflix-Bots authored May 13, 2024
1 parent 6bff6dc commit 87ed07e
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions plugins/pmfilter.py
Original file line number Diff line number Diff line change
Expand Up @@ -2131,6 +2131,22 @@ async def cb_handler(client: Client, query: CallbackQuery):
text=(script.STICKER_TXT),
reply_markup=reply_markup,
parse_mode=enums.ParseMode.HTML
)
elif query.data == "font":
buttons = [[
InlineKeyboardButton("ʙᴀᴄᴋ", callback_data="help"),
InlineKeyboardButton('sᴜᴘᴘᴏʀᴛ', callback_data='group_info')
]]
await client.edit_message_media(
query.message.chat.id,
query.message.id,
InputMediaPhoto(random.choice(PICS))
)
reply_markup = InlineKeyboardMarkup(buttons)
await query.message.edit_text(
text=(script.FONT_TXT),
reply_markup=reply_markup,
parse_mode=enums.ParseMode.HTML
)
elif query.data == "manuelfilter":
buttons = [[
Expand Down

0 comments on commit 87ed07e

Please sign in to comment.