Skip to content

Commit

Permalink
Initial Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
avipatilpro authored Jun 5, 2021
1 parent 318bef0 commit 5e0b86b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions WebStreamer/bot/plugins/stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,10 @@ async def channel_receive_handler(bot, broadcast):
return
try:
log_msg = await broadcast.forward(chat_id=Var.BIN_CHANNEL)
stream_link = "https://{}/{}".format(Var.FQDN, log_msg.message_id) if Var.ON_HEROKU or Var.NO_PORT else \
"http://{}:{}/{}".format(Var.FQDN,
Var.PORT,
log_msg.message_id)
await log_msg.reply_text(
text=f"**Cʜᴀɴɴᴇʟ Nᴀᴍᴇ:** `{broadcast.chat.title}`\n**Cʜᴀɴɴᴇʟ ID:** `{broadcast.chat.id}`\n**Rᴇǫᴜᴇsᴛ ᴜʀʟ:** {stream_link}", # Change Name According to Your App / Site Name
quote=True,
Expand Down

0 comments on commit 5e0b86b

Please sign in to comment.