-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py
59 lines (56 loc) · 1.79 KB
/
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
import os
from translation import Translation
from os import getenv
from dotenv import load_dotenv
load_dotenv()
class Config:
TG_BOT_TOKEN = os.environ.get("TG_BOT_TOKEN", "")
API_ID = os.environ.get("API_ID")
API_HASH = os.environ.get("API_HASH")
URL = os.environ.get("URL", "")
PORT = int(os.environ.get("PORT", 5000))
CHUNK_SIZE = 10280
APP_TITLE = os.environ.get("APP_TITLE", "usetgbot")
APP_SHORT_NAME = os.environ.get("APP_SHORT_NAME", "usetgbot")
APP_URL = os.environ.get("APP_URL", "https://telegram.dog/xtdevs")
APP_PLATFORM = [
"android",
"ios",
"wp",
"bb",
"desktop",
"web",
"ubp",
"other"
]
APP_DESCRIPTION = os.environ.get(
"APP_DESCRIPTION",
"created using https://telegram.dog/xtdevs"
)
FOOTER_TEXT = os.environ.get("FTEXT", "@rencprx")
START_TEXT = os.environ.get("START_TEXT", Translation.START_TEXT)
AFTER_RECVD_CODE_TEXT = os.environ.get(
"AFTER_RECVD_CODE_TEXT",
Translation.AFTER_RECVD_CODE_TEXT
)
BEFORE_SUCC_LOGIN = os.environ.get(
"BEFORE_SUCC_LOGIN",
Translation.BEFORE_SUCC_LOGIN
)
ERRED_PAGE = os.environ.get("ERRED_PAGE", Translation.ERRED_PAGE)
CANCELLED_MESG = os.environ.get(
"CANCELLED_MESG",
Translation.CANCELLED_MESG
)
IN_VALID_CODE_PVDED = os.environ.get(
"IN_VALID_CODE_PVDED",
Translation.IN_VALID_CODE_PVDED
)
IN_VALID_PHNO_PVDED = os.environ.get(
"IN_VALID_PHNO_PVDED",
Translation.IN_VALID_PHNO_PVDED
)
VFCN_CHECKING_ONE = "\"It is a beautiful and terrible thing, and should therefore be treated with great caution.\""
VFCN_RETURN_STATUS = "'compareFiles' returned '{ret_status}'."
class Development(Config):
pass