From 4a633ae80297223d5306c732035742a603b75c92 Mon Sep 17 00:00:00 2001 From: levina <82658782+levina-lab@users.noreply.github.com> Date: Sun, 27 Feb 2022 22:02:47 +0700 Subject: [PATCH] [check] some fixes --- driver/utils.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/driver/utils.py b/driver/utils.py index bac2a5d..ee1ee3c 100644 --- a/driver/utils.py +++ b/driver/utils.py @@ -128,11 +128,12 @@ async def stream_end_handler(_, u: Update): print(chat_id) op = await skip_current_song(chat_id) if op == 1: - pass + await remove_active_chat(chat_id) + return elif op == 2: await bot.send_message( chat_id, - "❌ an error occurred\n\n» **Clearing** __Queues__ and leaving video chat.", + "❌ an error occurred\n\n» **Clearing** Queues and leaving video chat.", ) else: await bot.send_message(