Update videoplayer.py
decorator without calling a method doesn't use `()`
This commit is contained in:
parent
cc0d89325f
commit
1d8d4cbebe
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user