This commit is contained in:
levina 2021-09-14 12:02:56 +07:00 committed by GitHub
parent 9bfc332e3a
commit 16828c7991
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -209,11 +209,10 @@ async def stopvideo(client, m: Message):
await m.reply(f"🚫 **error** | `{e}`") await m.reply(f"🚫 **error** | `{e}`")
@call_py.on_stream_end() @call_py.on_stream_end()
async def handler(client: PyTgCalls, update: Update, m: Message): async def handler(client: PyTgCalls, update: Update):
LOG.info(f"called ended stream") LOG.info(f"called ended stream")
chat_id = update.chat_id chat_id = update.chat_id
await call_py.leave_group_call(chat_id) await call_py.leave_group_call(chat_id)
await m.reply("✅ **successfully left vc !**")
@Client.on_message(command(["cplay", f"cplay@{Veez.BOT_USERNAME}"]) & filters.group & ~filters.edited) @Client.on_message(command(["cplay", f"cplay@{Veez.BOT_USERNAME}"]) & filters.group & ~filters.edited)