From 265c712c128326ceeca32dc5cfe90f17f0159369 Mon Sep 17 00:00:00 2001 From: Avishkar Patil Date: Sat, 5 Jun 2021 13:06:06 +0530 Subject: [PATCH] Initial Commit --- WebStreamer/bot/plugins/stream.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/WebStreamer/bot/plugins/stream.py b/WebStreamer/bot/plugins/stream.py index e393f28..207f619 100644 --- a/WebStreamer/bot/plugins/stream.py +++ b/WebStreamer/bot/plugins/stream.py @@ -113,7 +113,7 @@ async def channel_receive_handler(bot, broadcast): 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 + text=f"**Cʜᴀɴɴᴇʟ Nᴀᴍᴇ:** `{broadcast.chat.title}`\n**Cʜᴀɴɴᴇʟ ID:** `{broadcast.chat.id}`\n**Rᴇǫᴜᴇsᴛ ᴜʀʟ:** {stream_link}", quote=True, parse_mode="Markdown" ) @@ -122,7 +122,7 @@ async def channel_receive_handler(bot, broadcast): message_id=broadcast.message_id, reply_markup=InlineKeyboardMarkup( [ - [InlineKeyboardButton("Dᴏᴡɴʟᴏᴀᴅ ʟɪɴᴋ 📥", url=stream_link)] # Change Name According to Your App / Site Name + [InlineKeyboardButton("Dᴏᴡɴʟᴏᴀᴅ ʟɪɴᴋ 📥", url=stream_link)] ] ) ) @@ -133,5 +133,5 @@ async def channel_receive_handler(bot, broadcast): text=f"Gᴏᴛ FʟᴏᴏᴅWᴀɪᴛ ᴏғ {str(w.x)}s from {broadcast.chat.title}\n\n**Cʜᴀɴɴᴇʟ ID:** `{str(broadcast.chat.id)}`", disable_web_page_preview=True, parse_mode="Markdown") except Exception as e: - await bot.send_message(chat_id=Var.BIN_CHANNEL, text=f"#ᴇʀʀᴏʀ_ᴛʀᴀᴄᴇʙᴀᴄᴋ: `{e}`", disable_web_page_preview=True, parse_mode="Markdown") + await bot.send_message(chat_id=Var.BIN_CHANNEL, text=f"**#ᴇʀʀᴏʀ_ᴛʀᴀᴄᴇʙᴀᴄᴋ:** `{e}`", disable_web_page_preview=True, parse_mode="Markdown") print(f"Cᴀɴ'ᴛ Eᴅɪᴛ Bʀᴏᴀᴅᴄᴀsᴛ Mᴇssᴀɢᴇ!\nEʀʀᴏʀ: {e}")