diff --git a/Procfile b/Procfile index d80f8e78..b3276e25 100644 --- a/Procfile +++ b/Procfile @@ -1 +1,2 @@ +web: python3 bot.py worker: python3 bot.py diff --git a/app.json b/app.json index 2575c68f..4e64e5bc 100644 --- a/app.json +++ b/app.json @@ -55,7 +55,7 @@ "formation": { "worker": { "quantity": 1, - "size": "free" + "size": "eco" } } } diff --git a/app.py b/app.py index d2030641..b00c1476 100644 --- a/app.py +++ b/app.py @@ -3,7 +3,7 @@ @app.route('/') def hello_world(): - return 'TechVJ' + return 'TechTW' if __name__ == "__main__": diff --git a/bot.py b/bot.py index 7f43ed5f..3056cc2f 100644 --- a/bot.py +++ b/bot.py @@ -74,7 +74,7 @@ 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"), @@ -82,8 +82,8 @@ async def start(bot: Client, cmd: Message): 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") ] ] ) @@ -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 @@ -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"), @@ -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"), @@ -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") ] ] ) @@ -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 @@ -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 @@ -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"), diff --git a/configs.py b/configs.py index eb01aa49..ed96c2d4 100644 --- a/configs.py +++ b/configs.py @@ -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:Cluster0@cluster0.kailvlv.mongodb.net/?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)) @@ -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**. diff --git a/handlers/check_user_status.py b/handlers/check_user_status.py index 1e78a637..5ec8ae93 100644 --- a/handlers/check_user_status.py +++ b/handlers/check_user_status.py @@ -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() diff --git a/handlers/force_sub_handler.py b/handlers/force_sub_handler.py index 845ccaef..566a720a 100644 --- a/handlers/force_sub_handler.py +++ b/handlers/force_sub_handler.py @@ -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 @@ -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 diff --git a/requirements.txt b/requirements.txt index 0ca669af..22eb0e7c 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ -pyrofork +Pyrogram TgCrypto motor aiofiles