Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Procfile
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
web: python3 bot.py
worker: python3 bot.py
2 changes: 1 addition & 1 deletion app.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"formation": {
"worker": {
"quantity": 1,
"size": "free"
"size": "eco"
}
}
}
2 changes: 1 addition & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

@app.route('/')
def hello_world():
return 'TechVJ'
return 'TechTW'


if __name__ == "__main__":
Expand Down
24 changes: 12 additions & 12 deletions bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,16 +74,16 @@ async def start(bot: Client, cmd: Message):
reply_markup=InlineKeyboardMarkup(
[
[
InlineKeyboardButton("Updates Channel", url="https://t.me/VJ_Botz")
InlineKeyboardButton("Updates Channel", url="https://t.me/latest_tv_Show")
],
[
InlineKeyboardButton("About Bot", callback_data="aboutbot"),
InlineKeyboardButton("About Dev", callback_data="aboutdevs"),
InlineKeyboardButton("Close 🚪", callback_data="closeMessage")
],
[
InlineKeyboardButton("Support Group", url="https://t.me/VJ_Bot_Disscussion"),
InlineKeyboardButton("YouTube Channel", url="https://youtube.com/@Tech_VJ")
InlineKeyboardButton("Support Group", url="https://t.me/Developerltr_bot"),
InlineKeyboardButton("YouTube Channel", url="https://youtube.com/@videocreator2107?si=JsDT4YDKhp8I9Lfr")
]
]
)
Expand Down Expand Up @@ -124,7 +124,7 @@ async def main(bot: Client, message: Message):
return

if message.from_user.id in Config.BANNED_USERS:
await message.reply_text("Sorry, You are banned!\n\nContact [𝙎𝙪𝙥𝙥𝙤𝙧𝙩 𝙂𝙧𝙤𝙪𝙥](https://t.me/VJ_Bot_Disscussion)",
await message.reply_text("Sorry, You are banned!\n\nContact [𝙎𝙪𝙥𝙥𝙤𝙧𝙩 𝙂𝙧𝙤𝙪𝙥](https://t.me/Developerltr_bot)",
disable_web_page_preview=True)
return

Expand Down Expand Up @@ -319,7 +319,7 @@ async def button(bot: Client, cmd: CallbackQuery):
[
[
InlineKeyboardButton("Source Codes of Bot",
url="https://youtube.com/@Tech_VJ")
url="https://t.me/Developerltr_bot")
],
[
InlineKeyboardButton("Go Home", callback_data="gotohome"),
Expand All @@ -337,7 +337,7 @@ async def button(bot: Client, cmd: CallbackQuery):
[
[
InlineKeyboardButton("Source Codes of Bot",
url="https://youtube.com/@Tech_VJ")
url="https://t.me/Developerltr_bot")
],
[
InlineKeyboardButton("About Bot", callback_data="aboutbot"),
Expand All @@ -362,8 +362,8 @@ async def button(bot: Client, cmd: CallbackQuery):
InlineKeyboardButton("Close 🚪", callback_data="closeMessage")
],
[
InlineKeyboardButton("Support Group", url="https://t.me/VJ_Bot_Disscussion"),
InlineKeyboardButton("YouTube Channel", url="https://youtube.com/@Tech_VJ")
InlineKeyboardButton("Support Group", url="https://t.me/Developerltr_bot"),
InlineKeyboardButton("YouTube Channel", url="https://youtube.com/@videocreator2107?si=JsDT4YDKhp8I9Lfr")
]
]
)
Expand All @@ -379,7 +379,7 @@ async def button(bot: Client, cmd: CallbackQuery):
user = await bot.get_chat_member(channel_chat_id, cmd.message.chat.id)
if user.status == "kicked":
await cmd.message.edit(
text="Sorry Sir, You are Banned to use me. Contact my [𝙎𝙪𝙥𝙥𝙤𝙧𝙩 𝙂𝙧𝙤𝙪𝙥](https://t.me/VJ_Bot_Disscussion).",
text="Sorry Sir, You are Banned to use me. Contact my [𝙎𝙪𝙥𝙥𝙤𝙧𝙩 𝙂𝙧𝙤𝙪𝙥](https://t.me/Developerltr_bot).",
disable_web_page_preview=True
)
return
Expand All @@ -401,7 +401,7 @@ async def button(bot: Client, cmd: CallbackQuery):
return
except Exception:
await cmd.message.edit(
text="Something went Wrong. Contact my [𝙎𝙪𝙥𝙥𝙤𝙧𝙩 𝙂𝙧𝙤𝙪𝙥](https://t.me/VJ_Bot_Disscussion).",
text="Something went Wrong. Contact my [𝙎𝙪𝙥𝙥𝙤𝙧𝙩 𝙂𝙧𝙤𝙪𝙥](https://t.me/Developerltr_bot).",
disable_web_page_preview=True
)
return
Expand All @@ -411,8 +411,8 @@ async def button(bot: Client, cmd: CallbackQuery):
reply_markup=InlineKeyboardMarkup(
[
[
InlineKeyboardButton("Updates Channel", url="https://t.me/VJ_Botz"),
InlineKeyboardButton("Support Group", url="https://t.me/VJ_Bot_Disscussion")
InlineKeyboardButton("Updates Channel", url="https://t.me/latest_tv_Show"),
InlineKeyboardButton("Support Group", url="https://t.me/Developerltr_bot")
],
[
InlineKeyboardButton("About Bot", callback_data="aboutbot"),
Expand Down
26 changes: 13 additions & 13 deletions configs.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
import os

class Config(object):
API_ID = int(os.environ.get("API_ID", ""))
API_HASH = os.environ.get("API_HASH", "")
BOT_TOKEN = os.environ.get("BOT_TOKEN", "")
BOT_USERNAME = os.environ.get("BOT_USERNAME", "")
DB_CHANNEL = int(os.environ.get("DB_CHANNEL", ""))
SHORTLINK_URL = os.environ.get('SHORTLINK_URL', "MoneyKamalo.com")
SHORTLINK_API = os.environ.get('SHORTLINK_API', "0eefb93e1e3ce9470a7033115ceb1bad13a9d674")
BOT_OWNER = int(os.environ.get("BOT_OWNER", ""))
DATABASE_URL = os.environ.get("DATABASE_URL", "")
UPDATES_CHANNEL = os.environ.get("UPDATES_CHANNEL", "")
LOG_CHANNEL = int(os.environ.get("LOG_CHANNEL", ""))
API_ID = int(os.environ.get("API_ID", "22787559"))
API_HASH = os.environ.get("API_HASH", "e771139d8f3d4ae57f663ad049bbb710")
BOT_TOKEN = os.environ.get("BOT_TOKEN", "6957865617:AAErJV_3eAe6mQVFU8g1kvDRwUm66i3vVkE")
BOT_USERNAME = os.environ.get("BOT_USERNAME", "latest_tv_show_File_store_bot")
DB_CHANNEL = int(os.environ.get("DB_CHANNEL", "-1002117171789"))
SHORTLINK_URL = os.environ.get('SHORTLINK_URL', "publicearn.com")
SHORTLINK_API = os.environ.get('SHORTLINK_API', "9a696c4ea657a9791396336c3d1d84fafe02eb74")
BOT_OWNER = int(os.environ.get("BOT_OWNER", "1562792211"))
DATABASE_URL = os.environ.get("DATABASE_URL", "mongodb+srv://Cluster0:[email protected]/?retryWrites=true&w=majority")
UPDATES_CHANNEL = os.environ.get("UPDATES_CHANNEL", "-1001970358116")
LOG_CHANNEL = int(os.environ.get("LOG_CHANNEL", "-1001881381645"))
BANNED_USERS = set(int(x) for x in os.environ.get("BANNED_USERS", "").split())
FORWARD_AS_COPY = bool(os.environ.get("FORWARD_AS_COPY", True))
BROADCAST_AS_COPY = bool(os.environ.get("BROADCAST_AS_COPY", True))
Expand All @@ -32,11 +32,11 @@ class Config(object):
╰──────[ 😎 ]───────────⍟
"""
ABOUT_DEV_TEXT = f"""
🧑🏻‍💻 𝗗𝗲𝘃𝗲𝗹𝗼𝗽𝗲𝗿: [VJ](https://telegram.me/KingVj01)
🧑🏻‍💻 𝗗𝗲𝘃𝗲𝗹𝗼𝗽𝗲𝗿: [LTS](https://t.me/Latestshowtv)

I am Super noob Please Support My Hard Work.

[Donate Me](https://t.me/KingVj01)
[Donate Me](https://t.me/Latestshowtv)
"""
HOME_TEXT = """
Hello, [{}](tg://user?id={})\n\nThis is a Permanent **FileStore Bot**.
Expand Down
2 changes: 1 addition & 1 deletion handlers/check_user_status.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ async def handle_user_status(bot, cmd):
).days > ban_status["ban_duration"]:
await db.remove_ban(chat_id)
else:
await cmd.reply_text("You R Banned!.. Contact @VJ_Botz 😝", quote=True)
await cmd.reply_text("You R Banned!.. Contact @Developerltr_bot 😝", quote=True)
return
await cmd.continue_propagation()
4 changes: 2 additions & 2 deletions handlers/force_sub_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ async def handle_force_sub(bot: Client, cmd: Message):
if user.status == "kicked":
await bot.send_message(
chat_id=cmd.from_user.id,
text="Sorry Sir, You are Banned to use me. Contact my [𝙎𝙪𝙥𝙥𝙤𝙧𝙩 𝙂𝙧𝙤𝙪𝙥](https://t.me/VJ_Bot_Disscussion).",
text="Sorry Sir, You are Banned to use me. Contact my [𝙎𝙪𝙥𝙥𝙤𝙧𝙩 𝙂𝙧𝙤𝙪𝙥](https://t.me/Developerltr_bot).",
disable_web_page_preview=True
)
return 400
Expand Down Expand Up @@ -59,7 +59,7 @@ async def handle_force_sub(bot: Client, cmd: Message):
except Exception:
await bot.send_message(
chat_id=cmd.from_user.id,
text="Something went Wrong. Contact my [𝙎𝙪𝙥𝙥𝙤𝙧𝙩 𝙂𝙧𝙤𝙪𝙥](https://t.me/VJ_Bot_Disscussion).",
text="Something went Wrong. Contact my [𝙎𝙪𝙥𝙥𝙤𝙧𝙩 𝙂𝙧𝙤𝙪𝙥](https://t.me/Developerltr_bot).",
disable_web_page_preview=True
)
return 200
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pyrofork
Pyrogram
TgCrypto
motor
aiofiles
Expand Down