This commit is contained in:
levina 2021-09-13 21:04:09 +07:00 committed by GitHub
parent 51b892791f
commit d8dd61e266
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: