This commit is contained in:
levina 2022-02-11 13:48:42 +07:00 committed by GitHub
parent 954e6b6673
commit e89cc36678
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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