From 72b6da8a319c682dcd60450b7aae9351671f4cb8 Mon Sep 17 00:00:00 2001 From: levina <82658782+levina-lab@users.noreply.github.com> Date: Tue, 8 Feb 2022 00:00:51 +0700 Subject: [PATCH] fixes --- driver/utils.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/driver/utils.py b/driver/utils.py index 1f63aad..9d0ba0e 100644 --- a/driver/utils.py +++ b/driver/utils.py @@ -86,25 +86,25 @@ async def skip_item(chat_id, h): return 0 -@call_py.on_kicked() +@calls.on_kicked() async def kicked_handler(_, chat_id: int): if chat_id in QUEUE: clear_queue(chat_id) -@call_py.on_closed_voice_chat() +@calls.on_closed_voice_chat() async def closed_voice_chat_handler(_, chat_id: int): if chat_id in QUEUE: clear_queue(chat_id) -@call_py.on_left() +@calls.on_left() async def left_handler(_, chat_id: int): if chat_id in QUEUE: clear_queue(chat_id) -@call_py.on_stream_end() +@calls.on_stream_end() async def stream_end_handler(_, u: Update): if isinstance(u, StreamAudioEnded): chat_id = u.chat_id