mirror of
https://github.com/avipatilpro/FileStreamBot.git
synced 2026-01-15 14:22:53 -03:00
Initial Commit
This commit is contained in:
@@ -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: \n\nNew User [{m.from_user.first_name}](tg://user?id={m.from_user.id}) Started !!"
|
||||
f"New 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\nDue to Overload, Only Channel Subscribers can use the Bot!",
|
||||
text="**Please Join My Updates Channel to use this Bot!**\n\n*Due 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.herokuapp.com/{usr_cmd}")
|
||||
url=f"https://t.me/avifilestreambot/{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! 😁\nYour Link Generated! 🤓\n\n📂 **File Name:** `{}`\n**File Size:** `{}`\n\n📥 **Download Link:** `{}`"
|
||||
msg_text = "Bruh! 😁\n*Your Link Generated!* 🤓\n\n**📂 Fɪʟᴇ ɴᴀᴍᴇ :** `{}`\n**📦 Fɪʟᴇ ꜱɪᴢᴇ :** `{}`\n**📥 Dᴏᴡɴʟᴏᴀᴅ :** {}\n🚸 **Nᴏᴛᴇ : Lɪɴᴋ ᴇxᴘɪʀᴇᴅ ɪɴ 24 ʜᴏᴜʀꜱ**"
|
||||
await m.reply_text(
|
||||
text=msg_text.format(file_name, file_size, stream_link),
|
||||
parse_mode="Markdown",
|
||||
reply_markup=InlineKeyboardMarkup([[InlineKeyboardButton("Download Now", url=stream_link)]])
|
||||
reply_markup=InlineKeyboardMarkup([[InlineKeyboardButton("Dᴏᴡɴʟᴏᴀᴅ ɴᴏᴡ 📥", 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: \n\nNew User [{message.from_user.first_name}](tg://user?id={message.from_user.id}) Started !!"
|
||||
f"New User : [{m.from_user.first_name}](tg://user?id={m.from_user.id}) Started !!"
|
||||
)
|
||||
if Var.UPDATES_CHANNEL is not None:
|
||||
try:
|
||||
@@ -167,13 +167,19 @@ async def help_handler(bot, message):
|
||||
except Exception:
|
||||
await bot.send_message(
|
||||
chat_id=message.chat.id,
|
||||
text="Something went Wrong. Contact me [Avishkar Patil](https://t.me/Avishkarpatil).",
|
||||
parse_mode="markdown",
|
||||
text="""<i>Cᴏɴᴛᴀᴄᴛ ᴅᴇᴠᴇʟᴏᴘᴇʀ (ᴏʀ) ʀᴇᴘᴏʀᴛ ʙᴜɢꜱ</i> <b>: <a href='https://t.me/Avishkarpatil'>[ ᴄʟɪᴄᴋ ʜᴇʀᴇ ]</a></b>""",
|
||||
parse_mode="html",
|
||||
disable_web_page_preview=True)
|
||||
return
|
||||
await message.reply_text(
|
||||
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",
|
||||
text="""
|
||||
<i>Sᴇɴᴅ ᴍᴇ ᴀɴʏ ꜰɪʟᴇ (ᴏʀ) ᴍᴇᴅɪᴀ ꜰʀᴏᴍ ᴛᴇʟᴇɢʀᴀᴍ.</i>\n
|
||||
<i>I ᴡɪʟʟ ᴘʀᴏᴠɪᴅᴇ ᴇxᴛᴇʀɴᴀʟ ᴅɪʀᴇᴄᴛ ᴅᴏᴡɴʟᴏᴀᴅ ʟɪɴᴋ !.</i>\n
|
||||
<u>𝗪𝗔𝗥𝗡𝗜𝗡𝗚 🚸</u>\n
|
||||
<b>Pʀᴏɴ ᴄᴏɴᴛᴇɴᴛꜱ ʟᴇᴀᴅꜱ ᴛᴏ ᴘᴇʀᴍᴀɴᴇɴᴛ ʙᴀɴ ʏᴏᴜ.</b>\n
|
||||
<i>Cᴏɴᴛᴀᴄᴛ ᴅᴇᴠᴇʟᴏᴘᴇʀ (ᴏʀ) ʀᴇᴘᴏʀᴛ ʙᴜɢꜱ</i> <b>: <a href='https://t.me/Avishkarpatil'>[ ᴄʟɪᴄᴋ ʜᴇʀᴇ ]</a></b>""",
|
||||
|
||||
parse_mode="html",
|
||||
disable_web_page_preview=True,
|
||||
reply_markup=InlineKeyboardMarkup(
|
||||
[
|
||||
|
||||
Reference in New Issue
Block a user