From 124d17170dc629d4c2996bbe2e34af4cd2a22b9c Mon Sep 17 00:00:00 2001 From: levina <82658782+levina-lab@users.noreply.github.com> Date: Thu, 24 Feb 2022 19:27:42 +0700 Subject: [PATCH] [check] some fixes --- program/video_stream.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/program/video_stream.py b/program/video_stream.py index f43a964..450240a 100644 --- a/program/video_stream.py +++ b/program/video_stream.py @@ -190,7 +190,7 @@ async def play_tg_file(c: Client, m: Message, replied: Message = None, link: str ) remove_if_exists(image) except (NoActiveGroupCall, GroupCallNotFound): - await suhu.delete() + await loser.delete() await remove_active_chat(chat_id) traceback.print_exc() await m.reply_text("❌ The bot can't find the Group call or it's inactive.\n\n» Use /startvc command to turn on the Group call !") @@ -324,11 +324,11 @@ async def vplay(c: Client, m: Message): await remove_active_chat(chat_id) await m.reply_text("❌ The bot can't find the Group call or it's inactive.\n\n» Use /startvc command to turn on the Group call !") except NoVideoSourceFound: - await suhu.delete() + await loser.delete() await remove_active_chat(chat_id) await m.reply_text("❌ The content you provide to play has no video source") except NoAudioSourceFound: - await suhu.delete() + await loser.delete() await remove_active_chat(chat_id) await m.reply_text("❌ The content you provide to play has no audio source") except BaseException as err: @@ -409,11 +409,11 @@ async def vplay(c: Client, m: Message): await remove_active_chat(chat_id) await m.reply_text("❌ The bot can't find the Group call or it's inactive.\n\n» Use /startvc command to turn on the Group call !") except NoVideoSourceFound: - await suhu.delete() + await loser.delete() await remove_active_chat(chat_id) await m.reply_text("❌ The content you provide to play has no video source") except NoAudioSourceFound: - await suhu.delete() + await loser.delete() await remove_active_chat(chat_id) await m.reply_text("❌ The content you provide to play has no audio source") except BaseException as err: