forked from VJBots/File-Store-Bot-With-Url-Shortner
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigs.py
49 lines (42 loc) · 2.25 KB
/
configs.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
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", ""))
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](https://t.me/{BOT_USERNAME})
│
├🔸 Language: [Python 3](https://www.python.org)
│
├🔹 Library: [Pyrogram](https://docs.pyrogram.org)
│
╰──────[ 😎 ]───────────⍟
"""
ABOUT_DEV_TEXT = f"""
🧑🏻💻 𝗗𝗲𝘃𝗲𝗹𝗼𝗽𝗲𝗿: [VJ](https://telegram.me/KingVj01)
I am Super noob Please Support My Hard Work.
[Donate Me](https://t.me/KingVj01)
"""
HOME_TEXT = """
Hello, [{}](tg://user?id={})\n\nThis is a Permanent **FileStore Bot**.
How to Use Bot & it's Benefits??
📢 Send me any File & It will be uploaded in My Database & You will Get the File Link.
⚠️ 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**.
"""