fixes messsage not deleted

This commit is contained in:
levina 2022-02-08 07:00:29 +07:00 committed by GitHub
parent c23fba20ce
commit 365c9ecfa4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -229,8 +229,8 @@ async def cbmenu(_, query: CallbackQuery):
await query.answer("❌ nothing is currently streaming", show_alert=True) await query.answer("❌ nothing is currently streaming", show_alert=True)
@Client.on_callback_query(filters.regex("close_menu")) @Client.on_callback_query(filters.regex("set_close"))
async def close(_, query: CallbackQuery): async def close_menu(_, query: CallbackQuery):
user_id = query.from_user.id user_id = query.from_user.id
if await is_gbanned_user(user_id): if await is_gbanned_user(user_id):
await query.answer("❗️ You've blocked from using this bot!", show_alert=True) await query.answer("❗️ You've blocked from using this bot!", show_alert=True)
@ -242,7 +242,7 @@ async def close(_, query: CallbackQuery):
@Client.on_callback_query(filters.regex("close_panel")) @Client.on_callback_query(filters.regex("close_panel"))
async def close(_, query: CallbackQuery): async def close_panel(_, query: CallbackQuery):
user_id = query.from_user.id user_id = query.from_user.id
if await is_gbanned_user(user_id): if await is_gbanned_user(user_id):
await query.answer("❗️ You've blocked from using this bot!", show_alert=True) await query.answer("❗️ You've blocked from using this bot!", show_alert=True)