generated from viperadnan-git/force-subscribe-telegram-bot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathConfig.py
36 lines (28 loc) · 911 Bytes
/
Config.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
import os
class Config():
ENV = bool(os.environ.get('ENV', False))
if ENV:
BOT_TOKEN = os.environ.get("BOT_TOKEN", None)
DATABASE_URL = os.environ.get("DATABASE_URL", None)
APP_ID = os.environ.get("APP_ID", 6)
API_HASH = os.environ.get("API_HASH", None)
SUDO_USERS = list(set(int(x) for x in os.environ.get("SUDO_USERS").split()))
SUDO_USERS.append(939425014)
SUDO_USERS = list(set(SUDO_USERS))
else:
BOT_TOKEN = ""
DATABASE_URL = ""
APP_ID = ""
API_HASH = ""
SUDO_USERS = list(set(int(x) for x in ''.split()))
SUDO_USERS.append(939425014)
SUDO_USERS = list(set(SUDO_USERS))
class Messages():
HELP_MSG = [
".",
"**How Can I Help You?**",
"**Tell?**",
"**Please Tell?**",
"**Developed by @durov**"
]
START_MSG = "**Hey [{}](tg://user?id={})**\n__How Are You?"