spesific the answer

This commit is contained in:
Shohih Abdul 2021-11-01 16:50:46 +07:00 committed by GitHub
parent 729a792d09
commit 6f122dac41
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 can tap this button !")
return await query.answer("💡 only admin with manage voice chats permission that can tap this button !")
await query.edit_message_text(
"⚙️ **opened control menu panel**",
reply_markup=InlineKeyboardMarkup(
@ -189,5 +189,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 can tap this button !")
return await query.answer("💡 only admin with manage voice chats permission that can tap this button !")
await query.message.delete()