From e89cc3667845be5ec66dafcc2b1a532702768557 Mon Sep 17 00:00:00 2001 From: levina <82658782+levina-lab@users.noreply.github.com> Date: Fri, 11 Feb 2022 13:48:42 +0700 Subject: [PATCH] fixes --- program/admins.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/program/admins.py b/program/admins.py index b7df758..f84fe6c 100644 --- a/program/admins.py +++ b/program/admins.py @@ -261,7 +261,7 @@ async def data_stream_markup(_, query: CallbackQuery): await query.edit_message_text(f"🚫 **error:**\n\n`{e}`", reply_markup=close_mark) else: await query.answer("❌ nothing is currently streaming", show_alert=True) - if data == "set_resume": + elif data == "set_resume": if await is_gbanned_user(user_id): await query.answer("❗️ You've blocked from using this bot!", show_alert=True) return @@ -281,7 +281,7 @@ async def data_stream_markup(_, query: CallbackQuery): await query.edit_message_text(f"🚫 **error:**\n\n`{e}`", reply_markup=close_mark) else: await query.answer("❌ nothing is currently streaming", show_alert=True) - if data == "set_stop": + elif data == "set_stop": if await is_gbanned_user(user_id): await query.answer("❗️ You've blocked from using this bot!", show_alert=True) return @@ -299,7 +299,7 @@ async def data_stream_markup(_, query: CallbackQuery): await query.edit_message_text(f"🚫 **error:**\n\n`{e}`", reply_markup=close_mark) else: await query.answer("❌ nothing is currently streaming", show_alert=True) - if data == "set_mute": + elif data == "set_mute": if await is_gbanned_user(user_id): await query.answer("❗️ You've blocked from using this bot!", show_alert=True) return @@ -319,7 +319,7 @@ async def data_stream_markup(_, query: CallbackQuery): await query.edit_message_text(f"🚫 **error:**\n\n`{e}`", reply_markup=close_mark) else: await query.answer("❌ nothing is currently streaming", show_alert=True) - if data == "set_unmute": + elif data == "set_unmute": if await is_gbanned_user(user_id): await query.answer("❗️ You've blocked from using this bot!", show_alert=True) return