Skip to content

Commit

Permalink
Merge pull request #2 from HanSo-Hee/patch-2
Browse files Browse the repository at this point in the history
Update bot.py
  • Loading branch information
PredatorHackerzZ authored Oct 17, 2023
2 parents 0c01eb7 + aee9e55 commit 37dadb2
Showing 1 changed file with 70 additions and 1 deletion.
71 changes: 70 additions & 1 deletion bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,81 @@
workers=50,
sleep_threshold=0)

START_TEXT = """
A Simple MDisk Uploader Bot.\n
➠ Send Me Any Direct Link, YouTube Link Or Video Link.\n
➠ I Will Upload To PDisk And Give Direct Link\n
➠ Made With ❤ BY @MoviesFlixers_DL"""

HELP_TEXT = """
<i>- Sᴇɴᴅ ᴍᴇ ᴀɴʏ ꜰɪʟᴇ (ᴏʀ) ᴍᴇᴅɪᴀ ꜰʀᴏᴍ ᴛᴇʟᴇɢʀᴀᴍ.</i>
<i>- I ᴡɪʟʟ ᴘʀᴏᴠɪᴅᴇ ᴇxᴛᴇʀɴᴀʟ ᴅɪʀᴇᴄᴛ Mdisk ᴅᴏᴡɴʟᴏᴀᴅ ʟɪɴᴋ !.</i>
<i>- Tʜɪs Pᴇʀᴍᴇᴀɴᴛ Lɪɴᴋ Wɪᴛʜ Fᴀsᴛᴇsᴛ Sᴘᴇᴇᴅ</i>\n
<u>🔸 𝗪𝗔𝗥𝗡𝗜𝗡𝗚 🚸</u>\n
<b>🔞 Pʀᴏɴ ᴄᴏɴᴛᴇɴᴛꜱ ʟᴇᴀᴅꜱ ᴛᴏ ᴘᴇʀᴍᴀɴᴇɴᴛ ʙᴀɴ ʏᴏᴜ.</b>\n
<i>Cᴏɴᴛᴀᴄᴛ ᴅᴇᴠᴇʟᴏᴘᴇʀ (ᴏʀ) ʀᴇᴘᴏʀᴛ ʙᴜɢꜱ</i> <b>: <a href='https://t.me/TeleRoid14'>[ツAʙʜɪsʜᴇᴋ Kᴜᴍᴀʀ]</a></b>"""

ABOUT_TEXT = """
<b>⚜ Mʏ ɴᴀᴍᴇ : MdiskVideoBot</b>\n
<b>🔸Vᴇʀꜱɪᴏɴ : <a href='https://t.me/+t1ko_FOJxhFiOThl'>3.0.1</a></b>\n
<b>🔹Sᴏᴜʀᴄᴇ : <a href='https://github.com/PredatorHackerzZ'>Cʟɪᴄᴋ Hᴇʀᴇ</a></b>\n
<b>🔸GitHub : <a href='https://GitHub.com/PredatorHackerzZ'>ツAʙʜɪsʜᴇᴋ Kᴜᴍᴀʀ</a></b>\n
<b>🔹Dᴇᴠᴇʟᴏᴘᴇʀ : <a href='https://telegram.me/Mrabhi2k3'>ツAʙʜɪsʜᴇᴋ Kᴜᴍᴀʀ </a></b>\n
<b>🔸Lᴀꜱᴛ ᴜᴘᴅᴀᴛᴇᴅ : <a href='https://telegram.me/Mrabhi2k3'>[ 04 - March - 2023 ] 12:17 ᴀᴍ</a></b>"""

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')
]]
)

@bot.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()

@bot.on_message(filters.command('start') & filters.private)
async def start(bot, message):
await message.reply(
f"**Hola 👋{message.chat.first_name}!**\n\n"
"**A Simple PDisk Uploader Bot.\n\n➠ Send Me Any Direct Link, YouTube Link Or Video Link I Will Upload To PDisk And Give Direct Link\n\nMade With ❤ BY @MoviesFlixers_DL**")
"**A Simple PDisk Uploader Bot.\n\n➠ Send Me Any Direct Link, YouTube Link Or Video Link I Will Upload To PDisk And Give Direct Link\n\nMade With ❤ BY @MoviesFlixers_DL**",
disable_web_page_preview=True,
reply_markup=START_BUTTONS
)

@bot.on_message(filters.text & filters.private)
async def Doodstream_uploader(bot, message):
Expand Down

0 comments on commit 37dadb2

Please sign in to comment.