This commit is contained in:
levina 2021-10-26 13:49:35 +07:00 committed by GitHub
parent ce92671ef2
commit 37f7706a8c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -91,7 +91,7 @@ async def vplay(client, m: Message):
stream_type=StreamType().pulse_stream, stream_type=StreamType().pulse_stream,
) )
add_to_queue(chat_id, songname, dl, link, "Video", Q) add_to_queue(chat_id, songname, dl, link, "Video", Q)
await loser.edit(f"💡 **video streaming is started.**\n\n🏷 **Name:** [{songname}]({link})\n💬 **Chat:** `{chat_id}`", disable_web_page_preview=True) await loser.edit(f"💡 **video streaming started.**\n\n🏷 **Name:** [{songname}]({link})\n💬 **Chat:** `{chat_id}`", disable_web_page_preview=True)
else: else:
if len(m.command) < 2: if len(m.command) < 2:
await m.reply("» reply to an **audio file** or **give something to search.**") await m.reply("» reply to an **audio file** or **give something to search.**")
@ -125,7 +125,7 @@ async def vplay(client, m: Message):
stream_type=StreamType().pulse_stream, stream_type=StreamType().pulse_stream,
) )
add_to_queue(chat_id, songname, ytlink, url, "Video", Q) add_to_queue(chat_id, songname, ytlink, url, "Video", Q)
await loser.edit(f"💡 **video streaming is started.**\n\n🏷 **Name:** [{songname}]({link})\n💬 **Chat:** `{chat_id}`", disable_web_page_preview=True) await loser.edit(f"💡 **video streaming started.**\n\n🏷 **Name:** [{songname}]({url})\n💬 **Chat:** `{chat_id}`", disable_web_page_preview=True)
except Exception as ep: except Exception as ep:
await loser.edit(f"❌ issues: `{ep}`") await loser.edit(f"❌ issues: `{ep}`")
@ -222,6 +222,6 @@ async def vstream(client, m: Message):
stream_type=StreamType().pulse_stream, stream_type=StreamType().pulse_stream,
) )
add_to_queue(chat_id, "Live Stream", livelink, link, "Video", Q) add_to_queue(chat_id, "Live Stream", livelink, link, "Video", Q)
await loser.edit(f"💡 **video [live stream]({link}) is started.**\n💬 chat: `{chat_id}`", disable_web_page_preview=True) await loser.edit(f"💡 **video [live stream]({link}) started.**\n💬 chat: `{chat_id}`", disable_web_page_preview=True)
except Exception as ep: except Exception as ep:
await loser.edit(f"❌ issues: `{ep}`") await loser.edit(f"❌ issues: `{ep}`")