From c4cf1b8840afa1c55eb012b5b9a7a9abca63e18e Mon Sep 17 00:00:00 2001 From: levina <82658782+levina-lab@users.noreply.github.com> Date: Mon, 13 Sep 2021 09:56:52 +0700 Subject: [PATCH] fixes --- bot/videoplayer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot/videoplayer.py b/bot/videoplayer.py index e493c70..05dba16 100644 --- a/bot/videoplayer.py +++ b/bot/videoplayer.py @@ -164,12 +164,12 @@ async def startvideo(client, m: Message): ), stream_type=StreamType().local_stream, ) - await msg.reply_photoo streaming started!**\n\n» **join to video chat on the top to watch the video.**") - except Exception as e: await msg.reply_photo( photo="https://telegra.ph/file/dc90e91cc77e68568e7b4.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.**") + except Exception as e: + await msg.edit(f"🚫 **Error** | `{e}`") await idle() else: await m.reply("💭 please reply to video or video file to stream")