nothing
This commit is contained in:
parent
51b892791f
commit
d8dd61e266
@ -91,7 +91,7 @@ async def startvideo(client, m: Message):
|
|||||||
None,
|
None,
|
||||||
lambda : youtube(livelink)
|
lambda : youtube(livelink)
|
||||||
),
|
),
|
||||||
timeout=None # Add timeout (recommended)
|
timeout=None
|
||||||
)
|
)
|
||||||
except asyncio.TimeoutError:
|
except asyncio.TimeoutError:
|
||||||
await m.reply("TimeoutError: process is taking unexpected time")
|
await m.reply("TimeoutError: process is taking unexpected time")
|
||||||
@ -130,7 +130,7 @@ async def startvideo(client, m: Message):
|
|||||||
await m.reply_photo(
|
await m.reply_photo(
|
||||||
photo="https://telegra.ph/file/422650a849a8d6831bde8.png",
|
photo="https://telegra.ph/file/422650a849a8d6831bde8.png",
|
||||||
reply_markup=keyboard,
|
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()
|
return await msg.delete()
|
||||||
await idle()
|
await idle()
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
@ -309,6 +309,7 @@ async def chstopvideo(client, m: Message):
|
|||||||
await asyncio.sleep(3)
|
await asyncio.sleep(3)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(e)
|
print(e)
|
||||||
|
pass
|
||||||
await call_py.leave_group_call(chat_id)
|
await call_py.leave_group_call(chat_id)
|
||||||
await m.reply("✅ **video streaming channel ended**")
|
await m.reply("✅ **video streaming channel ended**")
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
Loading…
Reference in New Issue
Block a user