forgot
This commit is contained in:
parent
afe277a7be
commit
4feac7121f
@ -166,7 +166,7 @@ async def cbsudo(_, query: CallbackQuery):
|
|||||||
async def cbmenu(_, query: CallbackQuery):
|
async def cbmenu(_, query: CallbackQuery):
|
||||||
a = await _.get_chat_member(query.message.chat.id, query.from_user.id)
|
a = await _.get_chat_member(query.message.chat.id, query.from_user.id)
|
||||||
if not a.can_manage_voice_chats:
|
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(
|
await query.edit_message_text(
|
||||||
f"⚙️ **settings of** {query.message.chat.title}\n\n**⏸ pause || ▶️ resume**\n**🔇 mute || 🔊 unmute**\n**⏹ stop stream**",
|
f"⚙️ **settings of** {query.message.chat.title}\n\n**⏸ pause || ▶️ resume**\n**🔇 mute || 🔊 unmute**\n**⏹ stop stream**",
|
||||||
reply_markup=InlineKeyboardMarkup(
|
reply_markup=InlineKeyboardMarkup(
|
||||||
@ -188,5 +188,5 @@ async def cbmenu(_, query: CallbackQuery):
|
|||||||
async def close(_, query: CallbackQuery):
|
async def close(_, query: CallbackQuery):
|
||||||
a = await _.get_chat_member(query.message.chat.id, query.from_user.id)
|
a = await _.get_chat_member(query.message.chat.id, query.from_user.id)
|
||||||
if not a.can_manage_voice_chats:
|
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()
|
await query.message.delete()
|
||||||
|
Loading…
Reference in New Issue
Block a user