From d1657bb9dd68966c91befcd3adbce6192dd2c6ca Mon Sep 17 00:00:00 2001 From: creatorv06 <151960008+creatorv06@users.noreply.github.com> Date: Thu, 26 Sep 2024 14:02:23 +0530 Subject: [PATCH] configs.py --- configs.py | 83 ++++++++++++++++++++++++++---------------------------- 1 file changed, 40 insertions(+), 43 deletions(-) diff --git a/configs.py b/configs.py index 1f8a17ec..ec30cde9 100644 --- a/configs.py +++ b/configs.py @@ -1,52 +1,49 @@ -# (c) @AbirHasan2005 - import os - class Config(object): - API_ID = int(os.environ.get("API_ID", "0")) - 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", "-100")) - BOT_OWNER = int(os.environ.get("BOT_OWNER", "1445283714")) - DATABASE_URL = os.environ.get("DATABASE_URL") - UPDATES_CHANNEL = os.environ.get("UPDATES_CHANNEL", "") - LOG_CHANNEL = os.environ.get("LOG_CHANNEL", None) - BANNED_USERS = set(int(x) for x in os.environ.get("BANNED_USERS", "1234567890").split()) - FORWARD_AS_COPY = bool(os.environ.get("FORWARD_AS_COPY", True)) - BROADCAST_AS_COPY = bool(os.environ.get("BROADCAST_AS_COPY", False)) - BANNED_CHAT_IDS = list(set(int(x) for x in os.environ.get("BANNED_CHAT_IDS", "-1001362659779 -1001255795497").split())) - OTHER_USERS_CAN_SAVE_FILE = bool(os.environ.get("OTHER_USERS_CAN_SAVE_FILE", True)) - ABOUT_BOT_TEXT = f""" -This is Permanent Files Store Bot! -Send me any file I will save it in my Database. Also works for channel. Add me to channel as Admin with Edit Permission, I will add Save Uploaded File in Channel & add Sharable Button Link. - -πŸ€– **My Name:** [Files Store Bot](https://t.me/{BOT_USERNAME}) - -πŸ“ **Language:** [Python3](https://www.python.org) - -πŸ“š **Library:** [Pyrogram](https://docs.pyrogram.org) - -πŸ“‘ **Hosted on:** [Heroku](https://heroku.com) - -πŸ§‘πŸ»β€πŸ’» **Developer:** @AbirHasan2005 - -πŸ‘₯ **Support Group:** [Linux Repositories](https://t.me/DevsZone) - -πŸ“’ **Updates Channel:** [Discovery Projects](https://t.me/Discovery_Updates) + 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)) + BANNED_CHAT_IDS = list(set(int(x) for x in os.environ.get("BANNED_CHAT_IDS", "").split())) + OTHER_USERS_CAN_SAVE_FILE = bool(os.environ.get("OTHER_USERS_CAN_SAVE_FILE", True)) + ABOUT_BOT_TEXT = f""" +This is a Permanent FileStore Bot. +Send Me any Media or File. I can Work In Channel too. Add Me to Channel with Edit Permission, I will add save Uploaded File in Channel and Share a Shareable Link. + +╭────[ πŸ”…FΙͺΚŸα΄‡SᴛᴏʀᴇBα΄α΄›πŸ”…]β”€β”€β”€β”€βŸ +β”‚ +β”œπŸ”Έ My Name: [FileStore Bot](BOT_USERNAME) +β”‚ +β”œπŸ”Έ Language: [Python 3](https://www.python.org) +β”‚ +β”œπŸ”Ή Library: [Pyrogram](https://docs.pyrogram.org) +β”‚ +╰──────[ 😎 ]β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€βŸ """ - ABOUT_DEV_TEXT = f""" -πŸ§‘πŸ»β€πŸ’» **Developer:** @AbirHasan2005 + ABOUT_DEV_TEXT = f""" +πŸ§‘πŸ»β€πŸ’» π——π—²π˜ƒπ—²π—Ήπ—Όπ—½π—²π—Ώ: [LTS](https://t.me/Latestshowtv) + + I am Super noob Please Support My Hard Work. -Developer is Super Noob. Just Learning from Official Docs. Please Donate the developer for Keeping the Service Alive. +[Donate Me](https://t.me/Latestshowtv) +""" + HOME_TEXT = """ +Hello, [{}](tg://user?id={})\n\nThis is a Permanent **FileStore Bot**. -Also remember that developer will Delete Adult Contents from Database. So better don't Store Those Kind of Things. +How to Use Bot & it's Benefits?? -[Donate Now](https://www.paypal.me/AbirHasan2005) (PayPal) -""" - HOME_TEXT = """ -Hi, [{}](tg://user?id={})\n\nThis is Permanent **File Store Bot**. +πŸ“’ Send me any File & It will be uploaded in My Database & You will Get the File Link. -Send me any file I will give you a permanent Sharable Link. I Support Channel Also! Check **About Bot** Button. +⚠️ Benefits: If you have a TeleGram Movie Channel or Any Copyright Channel, Then Its Useful for Daily Usage, You can Send Me Your File & I will Send Permanent Link to You & Channel will be Safe from **CopyRight Infringement** Issue. I support Channel Also You Can Check **About Bot**. """