From cc7da7e1e6ea73d29503abf2a8ef2866c4b409dd Mon Sep 17 00:00:00 2001 From: levina <82658782+levina-lab@users.noreply.github.com> Date: Mon, 1 Nov 2021 17:27:51 +0700 Subject: [PATCH] detailed --- program/admins.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/program/admins.py b/program/admins.py index e83e8a2..cb05327 100644 --- a/program/admins.py +++ b/program/admins.py @@ -180,13 +180,13 @@ 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 can tap this button !") + return await query.answer("💡 only admin with manage voice chats permission that can tap this button !") chat_id = query.message.chat.id if chat_id in QUEUE: try: await call_py.pause_stream(chat_id) await query.edit_message_text( - "⏸ streaming is paused", reply_markup=bttn + "⏸ streaming has paused", reply_markup=bttn ) except Exception as e: await query.edit_message_text(f"🚫 **error:**\n\n`{e}`", reply_markup=bcl) @@ -198,13 +198,13 @@ 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 can tap this button !") + return await query.answer("💡 only admin with manage voice chats permission that can tap this button !") chat_id = query.message.chat.id if chat_id in QUEUE: try: await call_py.resume_stream(chat_id) await query.edit_message_text( - "▶️ streaming is resumed", reply_markup=bttn + "▶️ streaming has resumed", reply_markup=bttn ) except Exception as e: await query.edit_message_text(f"🚫 **error:**\n\n`{e}`", reply_markup=bcl) @@ -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 can tap this button !") + return await query.answer("💡 only admin with manage voice chats permission that can tap this button !") 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 can tap this button !") + return await query.answer("💡 only admin with manage voice chats permission that can tap this button !") 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 can tap this button !") + return await query.answer("💡 only admin with manage voice chats permission that can tap this button !") chat_id = query.message.chat.id if chat_id in QUEUE: try: