forked from PredatorHackerzZ/TG-FileStore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configs.py
62 lines (51 loc) · 2.45 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
50
51
52
53
54
55
56
57
58
59
60
61
62
# (c) @PredatorHackerzZ || @TeleRoidGroup
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"))
SHORTLINK_URL = os.environ.get('SHORTLINK_URL')
SHORTLINK_API = os.environ.get('SHORTLINK_API')
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 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)
│
├🔹 **Hosted On:** [Heroku](https://heroku.com)
│
├🔸 **Developer:** [Snowball](https://t.me/Snowball_Official)
│
├🔹 **Bot Support:** [Support](https://t.me/Roofiverse)
│
├🔸 **Bot Updates:** [Bots Channel](https://t.me/Rokubotz)
│
╰──────[ 😎 ]───────────⍟
"""
ABOUT_DEV_TEXT = f"""
🧑🏻💻 **𝗗𝗲𝘃𝗲𝗹𝗼𝗽𝗲𝗿:** [Snowball](https://github.com/Snowball-0)
I am Super noob Please Support My Hard Work.
[Donate Me](https://t.me/Snowball_Official) or ```Snowball_Official```
"""
HOME_TEXT = """
Hello, [{}](tg://user?id={})\n\nThis is a Permanent **FileStore Bot**.
How to Use Bot & it's Benefits??
📢 Sᴇɴᴅ ᴍᴇ ᴀɴʏ ғɪʟᴇ, I ᴡɪʟʟ sᴛᴏʀᴇ ɪᴛ ɪɴ ᴍʏ Dᴀᴛᴀʙᴀsᴇ ᴄʜᴀɴɴᴇʟ ᴀɴᴅ ɢɪᴠᴇ ʏᴏᴜʀ sʜᴀʀᴇʙʟᴇ ʟɪɴᴋ ᴛᴏ ᴀᴄᴄᴇss ᴛʜᴀᴛ ғɪʟᴇ.
🚀 Powered By @Roofiverse
"""