From b509b3e461b84fb4eadda3762512876d5a153f69 Mon Sep 17 00:00:00 2001 From: levina <82658782+levina-lab@users.noreply.github.com> Date: Fri, 5 Nov 2021 17:28:00 +0700 Subject: [PATCH] none --- program/admins.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/program/admins.py b/program/admins.py index 7354058..23102a8 100644 --- a/program/admins.py +++ b/program/admins.py @@ -179,7 +179,7 @@ async def unmute(client, m: Message): @Client.on_callback_query(filters.regex("cbpause")) async def cbpause(_, query: CallbackQuery): if query.message.sender_chat: - return await query.edit_message_text("you're an Anonymous Admin !\n\n» revert back to user account from admin rights.") + return await query.answer("you're an Anonymous Admin !\n\n» revert back to user account from admin rights.") 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 !", show_alert=True) @@ -199,7 +199,7 @@ async def cbpause(_, query: CallbackQuery): @Client.on_callback_query(filters.regex("cbresume")) async def cbresume(_, query: CallbackQuery): if query.message.sender_chat: - return await query.edit_message_text("you're an Anonymous Admin !\n\n» revert back to user account from admin rights.") + return await query.answer("you're an Anonymous Admin !\n\n» revert back to user account from admin rights.") 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 !", show_alert=True) @@ -219,7 +219,7 @@ async def cbresume(_, query: CallbackQuery): @Client.on_callback_query(filters.regex("cbstop")) async def cbstop(_, query: CallbackQuery): if query.message.sender_chat: - return await query.edit_message_text("you're an Anonymous Admin !\n\n» revert back to user account from admin rights.") + return await query.answer("you're an Anonymous Admin !\n\n» revert back to user account from admin rights.") 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 !", show_alert=True) @@ -238,7 +238,7 @@ async def cbstop(_, query: CallbackQuery): @Client.on_callback_query(filters.regex("cbmute")) async def cbmute(_, query: CallbackQuery): if query.message.sender_chat: - return await query.edit_message_text("you're an Anonymous Admin !\n\n» revert back to user account from admin rights.") + return await query.answer("you're an Anonymous Admin !\n\n» revert back to user account from admin rights.") 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 !", show_alert=True) @@ -258,7 +258,7 @@ async def cbmute(_, query: CallbackQuery): @Client.on_callback_query(filters.regex("cbunmute")) async def cbunmute(_, query: CallbackQuery): if query.message.sender_chat: - return await query.edit_message_text("you're an Anonymous Admin !\n\n» revert back to user account from admin rights.") + return await query.answer("you're an Anonymous Admin !\n\n» revert back to user account from admin rights.") 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 !", show_alert=True)