From f50db4d6880fc3a7b601660225776f98d3808abc Mon Sep 17 00:00:00 2001 From: levina <82658782+levina-lab@users.noreply.github.com> Date: Thu, 28 Oct 2021 22:42:52 +0700 Subject: [PATCH] some fixes --- driver/utils.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/driver/utils.py b/driver/utils.py index 7417a7d..9e5db17 100644 --- a/driver/utils.py +++ b/driver/utils.py @@ -72,10 +72,4 @@ async def on_end_handler(client: PyTgCalls, update: Update): if isinstance(update, StreamAudioEnded) or isinstance(update, StreamVideoEnded): chat_id = update.chat_id print(chat_id) - op = await skip_current_song(chat_id) - if op==1: - await bot.send_message(chat_id, "❌ no more music in __Queues__\n\n» userbot leaving voice chat") - else: - await bot.send_message(chat_id, f"**💡 now playing:**\n\n[{op[0]}]({op[1]}) | `{op[2]}`", disable_web_page_preview=True) - else: - pass + await skip_current_song(chat_id)