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"Nᴇᴡ Usᴇʀ Jᴏɪɴᴇᴅ: \n\nMʏ Nᴇᴡ Fʀɪᴇɴᴅ [{m.from_user.first_name}](tg://user?id={m.from_user.id}) Sᴛᴀʀᴛᴇᴅ Yᴏᴜʀ Bᴏᴛ !!"
|
||||
)
|
||||
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="__Sᴏʀʀʏ Sɪʀ, Yᴏᴜ ᴀʀᴇ Bᴀɴɴᴇᴅ ᴛᴏ ᴜsᴇ ᴍᴇ. Cᴏɴᴛᴀᴄᴛ ᴛʜᴇ Dᴇᴠᴇʟᴏᴘᴇʀ__\n\n @AvishkarPatil **Tʜᴇʏ Wɪʟʟ Hᴇʟᴘ Yᴏᴜ**",
|
||||
parse_mode="markdown",
|
||||
disable_web_page_preview=True
|
||||
)
|
||||
@@ -34,7 +34,7 @@ async def start(b, m):
|
||||
except UserNotParticipant:
|
||||
await b.send_message(
|
||||
chat_id=m.chat.id,
|
||||
text="<i>Jᴏɪɴ ᴍʏ ᴜᴘᴅᴀᴛᴇ ᴄʜᴀɴɴᴇʟ ᴛᴏ ᴜꜱᴇ ᴍᴇ 🔐</i>",
|
||||
text="<i>Jᴏɪɴ ᴍʏ ᴜᴘᴅᴀᴛᴇ ᴄʜᴀɴɴᴇʟ ᴛᴏ ᴜsᴇ ᴍᴇ 🔐</i>",
|
||||
reply_markup=InlineKeyboardMarkup(
|
||||
[
|
||||
[
|
||||
@@ -73,7 +73,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="Sᴏʀʀʏ Sɪʀ, Yᴏᴜ ᴀʀᴇ Bᴀɴɴᴇᴅ ᴛᴏ ᴜsᴇ ᴍᴇ. Qᴜɪᴄᴋʟʏ ᴄᴏɴᴛᴀᴄᴛ @Avishkarpatil",
|
||||
parse_mode="markdown",
|
||||
disable_web_page_preview=True
|
||||
)
|
||||
@@ -81,7 +81,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="**Pʟᴇᴀsᴇ Jᴏɪɴ Mʏ Uᴘᴅᴀᴛᴇs Cʜᴀɴɴᴇʟ ᴛᴏ ᴜsᴇ ᴛʜɪs Bᴏᴛ**!\n\n**Dᴜᴇ ᴛᴏ Oᴠᴇʀʟᴏᴀᴅ, Oɴʟʏ Cʜᴀɴɴᴇʟ Sᴜʙsᴄʀɪʙᴇʀs ᴄᴀɴ ᴜsᴇ ᴛʜᴇ Bᴏᴛ**!",
|
||||
reply_markup=InlineKeyboardMarkup(
|
||||
[
|
||||
[
|
||||
@@ -89,7 +89,7 @@ async def start(b, m):
|
||||
],
|
||||
[
|
||||
InlineKeyboardButton("🔄 Refresh / Try Again",
|
||||
url=f"https://t.me/F2LxBot.herokuapp.com/{usr_cmd}")
|
||||
url=f"https://t.me/F2LxBot.herokuapp.com/{usr_cmd}") # Chnage ur app name
|
||||
]
|
||||
]
|
||||
),
|
||||
@@ -99,7 +99,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="**Sᴏᴍᴇᴛʜɪɴɢ ᴡᴇɴᴛ Wʀᴏɴɢ. Cᴏɴᴛᴀᴄᴛ ᴍᴇ** [Aᴠɪsʜᴋᴀʀ Pᴀᴛɪʟ](https://t.me/Avishkarpatil).",
|
||||
parse_mode="markdown",
|
||||
disable_web_page_preview=True)
|
||||
return
|
||||
@@ -155,7 +155,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"Nᴇᴡ Usᴇʀ Jᴏɪɴᴇᴅ \n\nMʏ Nᴇᴡ Fʀɪᴇɴᴅ [{message.from_user.first_name}](tg://user?id={message.from_user.id}) Started Your Bot !!"
|
||||
)
|
||||
if Var.UPDATES_CHANNEL is not None:
|
||||
try:
|
||||
@@ -163,7 +163,7 @@ async def help_handler(bot, message):
|
||||
if user.status == "kicked":
|
||||
await bot.send_message(
|
||||
chat_id=message.chat.id,
|
||||
text="<i>Sorry Sir, You are Banned to use me.</i>",
|
||||
text="<i>Sᴏʀʀʏ Sɪʀ, Yᴏᴜ ᴀʀᴇ Bᴀɴɴᴇᴅ ᴛᴏ ᴜsᴇ ᴍᴇ. Cᴏɴᴛᴀᴄᴛ ᴛʜᴇ Dᴇᴠᴇʟᴏᴘᴇʀ</i>",
|
||||
parse_mode="HTML",
|
||||
disable_web_page_preview=True
|
||||
)
|
||||
@@ -171,11 +171,11 @@ async def help_handler(bot, message):
|
||||
except UserNotParticipant:
|
||||
await bot.send_message(
|
||||
chat_id=message.chat.id,
|
||||
text="**Please Join My Updates Channel to use this Bot!**\n\nDue to Overload, Only Channel Subscribers can use the Bot!",
|
||||
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("🤖 Jᴏɪɴ Uᴘᴅᴀᴛᴇs Cʜᴀɴɴᴇʟ", url=f"https://t.me/{Var.UPDATES_CHANNEL}")
|
||||
]
|
||||
]
|
||||
),
|
||||
@@ -185,7 +185,7 @@ 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).",
|
||||
text="__Sᴏᴍᴇᴛʜɪɴɢ ᴡᴇɴᴛ Wʀᴏɴɢ. Cᴏɴᴛᴀᴄᴛ ᴍᴇ__ [Aᴠɪsʜᴋᴀʀ Pᴀᴛɪʟ](https://t.me/Avishkarpatil).",
|
||||
parse_mode="markdown",
|
||||
disable_web_page_preview=True)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user