From d8dd61e26673bbc7c5f5b023fef8eafb0e77ef66 Mon Sep 17 00:00:00 2001 From: levina <82658782+levina-lab@users.noreply.github.com> Date: Mon, 13 Sep 2021 21:04:09 +0700 Subject: [PATCH] nothing --- bot/videoplayer.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bot/videoplayer.py b/bot/videoplayer.py index d2116b1..4c97a76 100644 --- a/bot/videoplayer.py +++ b/bot/videoplayer.py @@ -91,7 +91,7 @@ async def startvideo(client, m: Message): None, lambda : youtube(livelink) ), - timeout=None # Add timeout (recommended) + timeout=None ) except asyncio.TimeoutError: await m.reply("TimeoutError: process is taking unexpected time") @@ -130,7 +130,7 @@ async def startvideo(client, m: Message): await m.reply_photo( photo="https://telegra.ph/file/422650a849a8d6831bde8.png", reply_markup=keyboard, - caption=f"💡 **video streaming started!**\n\n🏷 **Name:** {title}\n⏱ **Duration:** `{duration} minutes`\n\n» **join to video chat on the top to watch the video.**") + caption=f"💡 **video streaming started!**\n\n🏷 **Name:** {title}\n⏱ **Duration:** `{duration}`\n\n» **join to video chat on the top to watch the video.**") return await msg.delete() await idle() except Exception as e: @@ -309,6 +309,7 @@ async def chstopvideo(client, m: Message): await asyncio.sleep(3) except Exception as e: print(e) + pass await call_py.leave_group_call(chat_id) await m.reply("✅ **video streaming channel ended**") except Exception as e: