From 4f9da2bb5dc303a302f3023663e5b7ab68cbf785 Mon Sep 17 00:00:00 2001 From: Avi Patil <67785446+avipatilpro@users.noreply.github.com> Date: Sun, 2 May 2021 22:01:07 +0530 Subject: [PATCH] Initial Commit --- WebStreamer/bot/plugins/start.py | 34 +++++++++++++------------------- 1 file changed, 14 insertions(+), 20 deletions(-) diff --git a/WebStreamer/bot/plugins/start.py b/WebStreamer/bot/plugins/start.py index 3c4527b..e31c1f2 100644 --- a/WebStreamer/bot/plugins/start.py +++ b/WebStreamer/bot/plugins/start.py @@ -16,7 +16,7 @@ async def start(b, m): await db.add_user(m.from_user.id) await b.send_message( Var.BIN_CHANNEL, - f"New User : [{m.from_user.first_name}](tg://user?id={m.from_user.id}) Started !!" + f"#NEW_USER: \n\nNew User [{m.from_user.first_name}](tg://user?id={m.from_user.id}) Started !!" ) usr_cmd = m.text.split("_")[-1] if usr_cmd == "/start": @@ -26,7 +26,7 @@ async def start(b, m): if user.status == "kicked": await b.send_message( chat_id=m.chat.id, - text="**Sorry Sir, You are Banned to use me. Contact the Developer**", + text="Sorry Sir, You are Banned to use me. Contact the Developer", parse_mode="markdown", disable_web_page_preview=True ) @@ -48,7 +48,7 @@ async def start(b, m): except Exception: await b.send_message( chat_id=m.chat.id, - text="**Something went Wrong. Contact me [Avishkar Patil](https://t.me/Avishkarpatil).**", + text="Something went Wrong. Contact me [Avishkar Patil](https://t.me/Avishkarpatil).", parse_mode="markdown", disable_web_page_preview=True) return @@ -69,7 +69,7 @@ async def start(b, m): if user.status == "kicked": await b.send_message( chat_id=m.chat.id, - text="*Sorry Sir, You are Banned to use me. Quickly contact @Avishkarpatil*", + text="Sorry Sir, You are Banned to use me. Quickly contact @Avishkarpatil", parse_mode="markdown", disable_web_page_preview=True ) @@ -77,7 +77,7 @@ async def start(b, m): except UserNotParticipant: await b.send_message( chat_id=m.chat.id, - text="**Please Join My Updates Channel to use this Bot!**\n\n*Due to Overload, Only Channel Subscribers can use the Bot!*", + text="**Please Join My Updates Channel to use this Bot!**\n\nDue to Overload, Only Channel Subscribers can use the Bot!", reply_markup=InlineKeyboardMarkup( [ [ @@ -85,7 +85,7 @@ async def start(b, m): ], [ InlineKeyboardButton("🔄 Refresh / Try Again", - url=f"https://t.me/avifilestreambot/{usr_cmd}") + url=f"https://t.me/avifilestreambot.herokuapp.com/{usr_cmd}") ] ] ), @@ -95,7 +95,7 @@ async def start(b, m): except Exception: await b.send_message( chat_id=m.chat.id, - text="**Something went Wrong. Contact me [Avishkar Patil](https://t.me/Avishkarpatil).**", + text="Something went Wrong. Contact me [Avishkar Patil](https://t.me/Avishkarpatil).", parse_mode="markdown", disable_web_page_preview=True) return @@ -123,11 +123,11 @@ async def start(b, m): Var.PORT, get_msg.message_id) - msg_text = "Bruh! 😁\n*Your Link Generated!* 🤓\n\n**📂 Fɪʟᴇ ɴᴀᴍᴇ :** `{}`\n**📦 Fɪʟᴇ ꜱɪᴢᴇ :** `{}`\n**📥 Dᴏᴡɴʟᴏᴀᴅ :** {}\n🚸 **Nᴏᴛᴇ : Lɪɴᴋ ᴇxᴘɪʀᴇᴅ ɪɴ 24 ʜᴏᴜʀꜱ**" + msg_text = "Bruh! 😁\nYour Link Generated! 🤓\n\n📂 **File Name:** `{}`\n**File Size:** `{}`\n\n📥 **Download Link:** `{}`" await m.reply_text( text=msg_text.format(file_name, file_size, stream_link), parse_mode="Markdown", - reply_markup=InlineKeyboardMarkup([[InlineKeyboardButton("Dᴏᴡɴʟᴏᴀᴅ ɴᴏᴡ 📥", url=stream_link)]]) + reply_markup=InlineKeyboardMarkup([[InlineKeyboardButton("Download Now", url=stream_link)]]) ) @@ -137,7 +137,7 @@ async def help_handler(bot, message): await db.add_user(message.from_user.id) await bot.send_message( Var.BIN_CHANNEL, - f"New User : [{m.from_user.first_name}](tg://user?id={m.from_user.id}) Started !!" + f"#NEW_USER: \n\nNew User [{message.from_user.first_name}](tg://user?id={message.from_user.id}) Started !!" ) if Var.UPDATES_CHANNEL is not None: try: @@ -167,19 +167,13 @@ async def help_handler(bot, message): except Exception: await bot.send_message( chat_id=message.chat.id, - text="""Cᴏɴᴛᴀᴄᴛ ᴅᴇᴠᴇʟᴏᴘᴇʀ (ᴏʀ) ʀᴇᴘᴏʀᴛ ʙᴜɢꜱ : [ ᴄʟɪᴄᴋ ʜᴇʀᴇ ]""", - parse_mode="html", + text="Something went Wrong. Contact me [Avishkar Patil](https://t.me/Avishkarpatil).", + parse_mode="markdown", disable_web_page_preview=True) return await message.reply_text( - text=""" -Sᴇɴᴅ ᴍᴇ ᴀɴʏ ꜰɪʟᴇ (ᴏʀ) ᴍᴇᴅɪᴀ ꜰʀᴏᴍ ᴛᴇʟᴇɢʀᴀᴍ.\n -I ᴡɪʟʟ ᴘʀᴏᴠɪᴅᴇ ᴇxᴛᴇʀɴᴀʟ ᴅɪʀᴇᴄᴛ ᴅᴏᴡɴʟᴏᴀᴅ ʟɪɴᴋ !.\n -𝗪𝗔𝗥𝗡𝗜𝗡𝗚 🚸\n -Pʀᴏɴ ᴄᴏɴᴛᴇɴᴛꜱ ʟᴇᴀᴅꜱ ᴛᴏ ᴘᴇʀᴍᴀɴᴇɴᴛ ʙᴀɴ ʏᴏᴜ.\n -Cᴏɴᴛᴀᴄᴛ ᴅᴇᴠᴇʟᴏᴘᴇʀ (ᴏʀ) ʀᴇᴘᴏʀᴛ ʙᴜɢꜱ : [ ᴄʟɪᴄᴋ ʜᴇʀᴇ ]""", - - parse_mode="html", + text="Send me any File I will provide External Direct Download Link!\n\nAlso I am Supported in Channels. Add me to Channel as Admin to Make Me Workable!", + parse_mode="Markdown", disable_web_page_preview=True, reply_markup=InlineKeyboardMarkup( [