From afe277a7bec1b36f9f9e96c5e1e16322dc1d0c79 Mon Sep 17 00:00:00 2001 From: levina <82658782+levina-lab@users.noreply.github.com> Date: Mon, 1 Nov 2021 17:36:32 +0700 Subject: [PATCH] forgot --- program/admins.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/program/admins.py b/program/admins.py index cb05327..30cf87c 100644 --- a/program/admins.py +++ b/program/admins.py @@ -180,7 +180,7 @@ async def unmute(client, m: Message): async def cbpause(_, 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) chat_id = query.message.chat.id if chat_id in QUEUE: try: @@ -198,7 +198,7 @@ async def cbpause(_, query: CallbackQuery): async def cbresume(_, 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) chat_id = query.message.chat.id if chat_id in QUEUE: try: @@ -216,7 +216,7 @@ async def cbresume(_, query: CallbackQuery): async def cbstop(_, 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) chat_id = query.message.chat.id if chat_id in QUEUE: try: @@ -233,7 +233,7 @@ async def cbstop(_, query: CallbackQuery): async def cbmute(_, 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) chat_id = query.message.chat.id if chat_id in QUEUE: try: @@ -251,7 +251,7 @@ async def cbmute(_, query: CallbackQuery): async def cbunmute(_, 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) chat_id = query.message.chat.id if chat_id in QUEUE: try: