From a4577e50f24cc293864337c3fed3df306aff0122 Mon Sep 17 00:00:00 2001 From: levina <82658782+levina-lab@users.noreply.github.com> Date: Fri, 11 Feb 2022 05:55:25 +0700 Subject: [PATCH] some fixes --- program/admins.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/program/admins.py b/program/admins.py index 03eab77..74b46ca 100644 --- a/program/admins.py +++ b/program/admins.py @@ -113,7 +113,7 @@ async def resume(client, m: Message): chat_id = m.chat.id if chat_id in QUEUE: try: - if not await is_music_playing(chat_id): + if await is_music_playing(chat_id): await m.reply("ℹ️ The music is already resumed.") return await calls.resume_stream(chat_id) @@ -217,7 +217,7 @@ async def unmute(client, m: Message): chat_id = m.chat.id if chat_id in QUEUE: try: - if not await is_music_playing(chat_id): + if await is_music_playing(chat_id): await m.reply("ℹ️ The stream userbot is already unmuted.") return await calls.unmute_stream(chat_id) @@ -267,7 +267,7 @@ async def cbresume(_, query: CallbackQuery): chat_id = query.message.chat.id if chat_id in QUEUE: try: - if not await is_music_playing(chat_id): + if await is_music_playing(chat_id): await query.answer("ℹ️ The music is already resumed.") return await calls.resume_stream(chat_id) @@ -337,7 +337,7 @@ async def cbunmute(_, query: CallbackQuery): chat_id = query.message.chat.id if chat_id in QUEUE: try: - if not await is_music_playing(chat_id): + if await is_music_playing(chat_id): await query.answer("ℹ️ The stream userbot is already unmuted.") return await calls.unmute_stream(chat_id)