This commit is contained in:
levina 2021-11-01 18:25:22 +07:00 committed by GitHub
parent afe277a7be
commit 4feac7121f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -166,7 +166,7 @@ async def cbsudo(_, query: CallbackQuery):
async def cbmenu(_, query: CallbackQuery):
a = await _.get_chat_member(query.message.chat.id, query.from_user.id)
if not a.can_manage_voice_chats:
return await query.answer("💡 only admin with manage voice chats permission that can tap this button !")
return await query.answer("💡 only admin with manage voice chats permission that can tap this button !", show_alert=True)
await query.edit_message_text(
f"⚙️ **settings of** {query.message.chat.title}\n\n**⏸ pause || ▶️ resume**\n**🔇 mute || 🔊 unmute**\n**⏹ stop stream**",
reply_markup=InlineKeyboardMarkup(
@ -188,5 +188,5 @@ async def cbmenu(_, query: CallbackQuery):
async def close(_, query: CallbackQuery):
a = await _.get_chat_member(query.message.chat.id, query.from_user.id)
if not a.can_manage_voice_chats:
return await query.answer("💡 only admin with manage voice chats permission that can tap this button !")
return await query.answer("💡 only admin with manage voice chats permission that can tap this button !", show_alert=True)
await query.message.delete()