Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

configs.py #63

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
83 changes: 40 additions & 43 deletions configs.py
Original file line number Diff line number Diff line change
@@ -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:[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))
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**.
"""