diff --git a/WebStreamer/bot/plugins/start.py b/WebStreamer/bot/plugins/start.py
index b51dcd9..d1fbfbb 100644
--- a/WebStreamer/bot/plugins/start.py
+++ b/WebStreamer/bot/plugins/start.py
@@ -9,6 +9,76 @@ from pyrogram.types import InlineKeyboardMarkup, InlineKeyboardButton
from pyrogram.errors import UserNotParticipant
db = Database(Var.DATABASE_URL, Var.SESSION_NAME)
+START_TEXT = """
+👋 Hᴇʏ,{}\n
+I'ᴍ Tᴇʟᴇɢʀᴀᴍ Fɪʟᴇs Sᴛʀᴇᴀᴍɪɴɢ Bᴏᴛ ᴀs ᴡᴇʟʟ Dɪʀᴇᴄᴛ Lɪɴᴋs Gᴇɴᴇʀᴀᴛᴇ\n
+Cʟɪᴄᴋ ᴏɴ Hᴇʟᴘ ᴛᴏ ɢᴇᴛ ᴍᴏʀᴇ ɪɴғᴏʀᴍᴀᴛɪᴏɴ\n
+𝗪𝗔𝗥𝗡𝗜𝗡𝗚 🚸
+🔞 Pʀᴏɴ ᴄᴏɴᴛᴇɴᴛꜱ ʟᴇᴀᴅꜱ ᴛᴏ ᴘᴇʀᴍᴀɴᴇɴᴛ ʙᴀɴ ʏᴏᴜ.\n\n
+🍃 Bᴏᴛ Mᴀɪɴᴛᴀɪɴᴇᴅ Bʏ :@AvishkarPatil"""
+
+HELP_TEXT = """
+- Sᴇɴᴅ ᴍᴇ ᴀɴʏ ꜰɪʟᴇ (ᴏʀ) ᴍᴇᴅɪᴀ ꜰʀᴏᴍ ᴛᴇʟᴇɢʀᴀᴍ.
+- I ᴡɪʟʟ ᴘʀᴏᴠɪᴅᴇ ᴇxᴛᴇʀɴᴀʟ ᴅɪʀᴇᴄᴛ ᴅᴏᴡɴʟᴏᴀᴅ ʟɪɴᴋ !.
+- Aᴅᴅ Mᴇ ɪɴ ʏᴏᴜʀ Cʜᴀɴɴᴇʟ Fᴏʀ Dɪʀᴇᴄᴛ Dᴏᴡɴʟᴏᴀᴅ Lɪɴᴋs Bᴜᴛᴛᴏɴ
+- Tʜɪs Pᴇʀᴍᴇᴀɴᴛ Lɪɴᴋ Wɪᴛʜ Fᴀsᴛᴇsᴛ Sᴘᴇᴇᴅ\n
+🔸 𝗪𝗔𝗥𝗡𝗜𝗡𝗚 🚸\n
+🔞 Pʀᴏɴ ᴄᴏɴᴛᴇɴᴛꜱ ʟᴇᴀᴅꜱ ᴛᴏ ᴘᴇʀᴍᴀɴᴇɴᴛ ʙᴀɴ ʏᴏᴜ.\n
+Cᴏɴᴛᴀᴄᴛ ᴅᴇᴠᴇʟᴏᴘᴇʀ (ᴏʀ) ʀᴇᴘᴏʀᴛ ʙᴜɢꜱ : [ ᴄʟɪᴄᴋ ʜᴇʀᴇ ]"""
+
+ABOUT_TEXT = """
+⚜ Mʏ ɴᴀᴍᴇ : FileStreamX\n
+🔸Vᴇʀꜱɪᴏɴ : 3.0.1\n
+🔹Sᴏᴜʀᴄᴇ : Cʟɪᴄᴋ Hᴇʀᴇ\n
+🔸GitHub : Fᴏʟʟᴏᴡ\n
+🔹Dᴇᴠᴇʟᴏᴘᴇʀ : Aᴠɪsʜᴋᴀʀ Pᴀᴛɪʟ\n
+🔸Lᴀꜱᴛ ᴜᴘᴅᴀᴛᴇᴅ : [ 01-02-21 ] 05:05 PM"""
+
+START_BUTTONS = InlineKeyboardMarkup(
+ [[
+ InlineKeyboardButton('Hᴇʟᴘ', callback_data='help'),
+ InlineKeyboardButton('Aʙᴏᴜᴛ', callback_data='about'),
+ InlineKeyboardButton('Cʟᴏsᴇ', callback_data='close')
+ ]]
+ )
+HELP_BUTTONS = InlineKeyboardMarkup(
+ [[
+ InlineKeyboardButton('Hᴏᴍᴇ', callback_data='home'),
+ InlineKeyboardButton('Aʙᴏᴜᴛ', callback_data='about'),
+ InlineKeyboardButton('Cʟᴏsᴇ', callback_data='close')
+ ]]
+ )
+ABOUT_BUTTONS = InlineKeyboardMarkup(
+ [[
+ InlineKeyboardButton('Hᴏᴍᴇ', callback_data='home'),
+ InlineKeyboardButton('Hᴇʟᴘ', callback_data='help'),
+ InlineKeyboardButton('Cʟᴏsᴇ', callback_data='close')
+ ]]
+ )
+
+@StreamBot.on_callback_query()
+async def cb_data(bot, update):
+ if update.data == "home":
+ await update.message.edit_text(
+ text=START_TEXT.format(update.from_user.mention),
+ disable_web_page_preview=True,
+ reply_markup=START_BUTTONS
+ )
+ elif update.data == "help":
+ await update.message.edit_text(
+ text=HELP_TEXT,
+ disable_web_page_preview=True,
+ reply_markup=HELP_BUTTONS
+ )
+ elif update.data == "about":
+ await update.message.edit_text(
+ text=ABOUT_TEXT,
+ disable_web_page_preview=True,
+ reply_markup=ABOUT_BUTTONS
+ )
+ else:
+ await update.message.delete()
+
@StreamBot.on_message(filters.command('start') & filters.private & ~filters.edited)
async def start(b, m):
@@ -36,11 +106,9 @@ async def start(b, m):
chat_id=m.chat.id,
text="Jᴏɪɴ ᴍʏ ᴜᴘᴅᴀᴛᴇ ᴄʜᴀɴɴᴇʟ ᴛᴏ ᴜsᴇ ᴍᴇ 🔐",
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"
)
@@ -53,17 +121,11 @@ async def start(b, m):
disable_web_page_preview=True)
return
await m.reply_text(
- text="""
-👋 Hᴇʏ, ʜɪꜱ ɪꜱ ꜰɪʟᴇ ᴛᴏ ʟɪɴᴋ ɢᴇɴ ʙᴏᴛ\n
-Cʟɪᴄᴋ ᴏɴ /help ᴛᴏ ɢᴇᴛ ᴍᴏʀᴇ ɪɴғᴏʀᴍᴀᴛɪᴏɴ\n
-🍃 Bᴏᴛ Mᴀɪɴᴛᴀɪɴᴇᴅ Bʏ :@AvishkarPatil\n\n
-𝗪𝗔𝗥𝗡𝗜𝗡𝗚 🚸\n
-🔞 Pʀᴏɴ ᴄᴏɴᴛᴇɴᴛꜱ ʟᴇᴀᴅꜱ ᴛᴏ ᴘᴇʀᴍᴀɴᴇɴᴛ ʙᴀɴ ʏᴏᴜ.""",
+ text=START_TEXT.format(m.from_user.mention),
parse_mode="HTML",
disable_web_page_preview=True,
- reply_markup=InlineKeyboardMarkup( [ [InlineKeyboardButton('My Father 🍂', url='https://t.me/Avishkarpatil'),
- InlineKeyboardButton('Follow 🍺', url='https://Instagram.com/proavipatil') ] ] ) )
-
+ reply_markup=START_BUTTONS
+ )
else:
@@ -83,15 +145,9 @@ async def start(b, m):
chat_id=m.chat.id,
text="**Pʟᴇᴀsᴇ Jᴏɪɴ Mʏ Uᴘᴅᴀᴛᴇs Cʜᴀɴɴᴇʟ ᴛᴏ ᴜsᴇ ᴛʜɪs Bᴏᴛ**!\n\n**Dᴜᴇ ᴛᴏ Oᴠᴇʀʟᴏᴀᴅ, Oɴʟʏ Cʜᴀɴɴᴇʟ Sᴜʙsᴄʀɪʙᴇʀs ᴄᴀɴ ᴜsᴇ ᴛʜᴇ Bᴏᴛ**!",
reply_markup=InlineKeyboardMarkup(
- [
- [
- InlineKeyboardButton("🤖 Join Updates Channel", url=f"https://t.me/{Var.UPDATES_CHANNEL}")
- ],
- [
- InlineKeyboardButton("🔄 Refresh / Try Again",
- url=f"https://t.me/F2LxBot.herokuapp.com/{usr_cmd}") # Chnage ur app name
- ]
- ]
+ [[
+ InlineKeyboardButton("🤖 Jᴏɪɴ Uᴘᴅᴀᴛᴇs Cʜᴀɴɴᴇʟ", url=f"https://t.me/{Var.UPDATES_CHANNEL}")
+ ]]
),
parse_mode="markdown"
)
@@ -129,17 +185,11 @@ async def start(b, m):
msg_text ="""
𝗬𝗼𝘂𝗿 𝗟𝗶𝗻𝗸 𝗚𝗲𝗻𝗲𝗿𝗮𝘁𝗲𝗱 !
-
📂 Fɪʟᴇ ɴᴀᴍᴇ : {}
-
📦 Fɪʟᴇ ꜱɪᴢᴇ : {}
-
📥 Dᴏᴡɴʟᴏᴀᴅ : {}
-
🚸 Nᴏᴛᴇ : Lɪɴᴋ ᴇxᴘɪʀᴇᴅ ɪɴ 24 ʜᴏᴜʀꜱ
-
🍃 Bᴏᴛ Mᴀɪɴᴛᴀɪɴᴇᴅ Bʏ : @AvishkarPatil
-
"""
await m.reply_text(
@@ -149,6 +199,15 @@ async def start(b, m):
)
+@StreamBot.on_message(filters.private & filters.command(["about"]))
+async def start(bot, update):
+ await update.reply_text(
+ text=ABOUT_TEXT.format(update.from_user.mention),
+ disable_web_page_preview=True,
+ reply_markup=ABOUT_BUTTONS
+ )
+
+
@StreamBot.on_message(filters.command('help') & filters.private & ~filters.edited)
async def help_handler(bot, message):
if not await db.is_user_exist(message.from_user.id):
@@ -173,11 +232,9 @@ async def help_handler(bot, message):
chat_id=message.chat.id,
text="**Pʟᴇᴀsᴇ Jᴏɪɴ Mʏ Uᴘᴅᴀᴛᴇs Cʜᴀɴɴᴇʟ ᴛᴏ ᴜsᴇ ᴛʜɪs Bᴏᴛ!**\n\n__Dᴜᴇ ᴛᴏ Oᴠᴇʀʟᴏᴀᴅ, Oɴʟʏ Cʜᴀɴɴᴇʟ Sᴜʙsᴄʀɪʙᴇʀs ᴄᴀɴ ᴜsᴇ ᴛʜᴇ Bᴏᴛ!__",
reply_markup=InlineKeyboardMarkup(
- [
- [
- InlineKeyboardButton("🤖 Jᴏɪɴ Uᴘᴅᴀᴛᴇs Cʜᴀɴɴᴇʟ", url=f"https://t.me/{Var.UPDATES_CHANNEL}")
- ]
- ]
+ [[
+ InlineKeyboardButton("🤖 Jᴏɪɴ Uᴘᴅᴀᴛᴇs Cʜᴀɴɴᴇʟ", url=f"https://t.me/{Var.UPDATES_CHANNEL}")
+ ]]
),
parse_mode="markdown"
)
@@ -190,18 +247,8 @@ async def help_handler(bot, message):
disable_web_page_preview=True)
return
await message.reply_text(
- text="""
-Sᴇɴᴅ ᴍᴇ ᴀɴʏ ꜰɪʟᴇ (ᴏʀ) ᴍᴇᴅɪᴀ ꜰʀᴏᴍ ᴛᴇʟᴇɢʀᴀᴍ.\n
-I ᴡɪʟʟ ᴘʀᴏᴠɪᴅᴇ ᴇxᴛᴇʀɴᴀʟ ᴅɪʀᴇᴄᴛ ᴅᴏᴡɴʟᴏᴀᴅ ʟɪɴᴋ !.\n
-𝗪𝗔𝗥𝗡𝗜𝗡𝗚 🚸\n
-Pʀᴏɴ ᴄᴏɴᴛᴇɴᴛꜱ ʟᴇᴀᴅꜱ ᴛᴏ ᴘᴇʀᴍᴀɴᴇɴᴛ ʙᴀɴ ʏᴏᴜ.\n
-Cᴏɴᴛᴀᴄᴛ ᴅᴇᴠᴇʟᴏᴘᴇʀ (ᴏʀ) ʀᴇᴘᴏʀᴛ ʙᴜɢꜱ : [ ᴄʟɪᴄᴋ ʜᴇʀᴇ ]""",
+ text=HELP_BUTTONS,
parse_mode="HTML",
disable_web_page_preview=True,
- reply_markup=InlineKeyboardMarkup(
- [
- [InlineKeyboardButton("🏵 DEV", url="https://GitHub.com/avipatilpro")],
- [InlineKeyboardButton("🍺 FOLLOW", url="https://Instagram.com/proavipatil")]
- ]
+ reply_markup=HELP_BUTTONS
)
- )