Initial Commit

This commit is contained in:
Avishkar Patil
2021-06-05 12:56:00 +05:30
committed by GitHub
parent 318bef02d7
commit 5e0b86bc7b

View File

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