From e9d5da2884eae0cc8699d4b98d1799562ed846d6 Mon Sep 17 00:00:00 2001 From: levina <82658782+levina-lab@users.noreply.github.com> Date: Wed, 9 Feb 2022 22:37:12 +0700 Subject: [PATCH] unused --- program/video.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/program/video.py b/program/video.py index 1055647..0b671a7 100644 --- a/program/video.py +++ b/program/video.py @@ -2,6 +2,7 @@ # Commit Start Date 20/10/2021 # Finished On 28/10/2021 + import os import re import asyncio @@ -15,7 +16,7 @@ from driver.queues import QUEUE, add_to_queue from driver.core import calls, user, bot from driver.database.dbpunish import is_gbanned_user from driver.database.dblockchat import blacklisted_chats -from driver.database.dbqueue import add_active_chat, remove_active_chat, music_on, music_off +from driver.database.dbqueue import add_active_chat, remove_active_chat, music_on # pyrogram stuff from pyrogram import Client from pyrogram.errors import UserAlreadyParticipant, UserNotParticipant @@ -293,7 +294,6 @@ async def vplay(c: Client, m: Message): os.remove(image) except Exception as ep: await loser.delete() - await music_off(chat_id) await remove_active_chat(chat_id) await m.reply_text(f"🚫 error: `{ep}`") @@ -364,7 +364,6 @@ async def vplay(c: Client, m: Message): os.remove(image) except Exception as ep: await loser.delete() - await music_off(chat_id) await remove_active_chat(chat_id) await m.reply_text(f"🚫 error: `{ep}`") @@ -519,6 +518,5 @@ async def vstream(c: Client, m: Message): ) except Exception as ep: await loser.delete() - await music_off(chat_id) await remove_active_chat(chat_id) await m.reply_text(f"🚫 error: `{ep}`")