From 1d8d4cbebe765b8c0afa03143c69e2241455fcc1 Mon Sep 17 00:00:00 2001 From: Shohih Abdul <50512936+DoellBarr@users.noreply.github.com> Date: Mon, 13 Sep 2021 06:08:19 +0700 Subject: [PATCH] Update videoplayer.py decorator without calling a method doesn't use `()` --- bot/videoplayer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/videoplayer.py b/bot/videoplayer.py index 3b27260..e9016df 100644 --- a/bot/videoplayer.py +++ b/bot/videoplayer.py @@ -176,7 +176,7 @@ async def stopvideo(client, m: Message): except Exception as e: await m.reply(f"🚫 **error** | `{e}`") -@call_py.on_stream_end() +@call_py.on_stream_end async def handler(client: PyTgCalls, update: Update): chat_id = update.chat.id await leave_call(chat_id)