Initial Commit

This commit is contained in:
Avishkar Patil
2021-06-05 13:06:06 +05:30
committed by GitHub
parent c847de4685
commit 265c712c12

View File

@@ -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}")