Skip to content

Commit

Permalink
Initial Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
avipatilpro authored Jul 1, 2021
1 parent 8d41cf0 commit 1b4374d
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions WebStreamer/bot/plugins/stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,7 @@ async def private_receive_handler(c: Client, m: Message):
chat_id=m.chat.id,
text="""<i>Jᴏɪɴ ᴍʏ ᴜᴘᴅᴀᴛᴇ ᴄʜᴀɴɴᴇʟ ᴛᴏ ᴜꜱᴇ ᴍᴇ 🔐</i>""",
reply_markup=InlineKeyboardMarkup(
[
[
InlineKeyboardButton("Jᴏɪɴ ɴᴏᴡ 🔓", url=f"https://t.me/{Var.UPDATES_CHANNEL}")
]
]
[[ InlineKeyboardButton("Jᴏɪɴ ɴᴏᴡ 🔓", url=f"https://t.me/{Var.UPDATES_CHANNEL}") ]]
),
parse_mode="HTML"
)
Expand Down Expand Up @@ -76,15 +72,10 @@ async def private_receive_handler(c: Client, m: Message):

msg_text ="""
<i><u>𝗬𝗼𝘂𝗿 𝗟𝗶𝗻𝗸 𝗚𝗲𝗻𝗲𝗿𝗮𝘁𝗲𝗱 !</u></i>
<b>📂 Fɪʟᴇ ɴᴀᴍᴇ :</b> <i>{}</i>
<b>📦 Fɪʟᴇ ꜱɪᴢᴇ :</b> <i>{}</i>
<b>📥 Dᴏᴡɴʟᴏᴀᴅ :</b> <i>{}</i>
<b>🚸 Nᴏᴛᴇ : Lɪɴᴋ ᴇxᴘɪʀᴇᴅ ɪɴ 24 ʜᴏᴜʀꜱ</b>
<i>© @AvishkarPatil </i>"""

await log_msg.reply_text(text=f"**RᴇQᴜᴇꜱᴛᴇᴅ ʙʏ :** [{m.from_user.first_name}](tg://user?id={m.from_user.id})\n**Uꜱᴇʀ ɪᴅ :** `{m.from_user.id}`\n**Dᴏᴡɴʟᴏᴀᴅ ʟɪɴᴋ :** {stream_link}", disable_web_page_preview=True, parse_mode="Markdown", quote=True)
Expand Down Expand Up @@ -121,10 +112,7 @@ async def channel_receive_handler(bot, broadcast):
chat_id=broadcast.chat.id,
message_id=broadcast.message_id,
reply_markup=InlineKeyboardMarkup(
[
[InlineKeyboardButton("Dᴏᴡɴʟᴏᴀᴅ ʟɪɴᴋ 📥", url=stream_link)]
]
)
[[InlineKeyboardButton("Dᴏᴡɴʟᴏᴀᴅ ʟɪɴᴋ 📥", url=stream_link)]])
)
except FloodWait as w:
print(f"Sleeping for {str(w.x)}s")
Expand Down

0 comments on commit 1b4374d

Please sign in to comment.