-
Notifications
You must be signed in to change notification settings - Fork 1
/
sample_config.py
70 lines (66 loc) · 2.31 KB
/
sample_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
60
61
62
63
64
65
66
67
68
69
70
import os
from translation import Translation
class Config:
# get a token from @BotFather
TG_BOT_TOKEN = os.environ.get("TG_BOT_TOKEN", None)
# required for running on Heroku
URL = os.environ.get("URL", "")
PORT = int(os.environ.get("PORT", 5000))
# Python3 ReQuests CHUNK SIZE
CHUNK_SIZE = 10280
# MyTelegram.org
# configurtion required while creating new application
APP_TITLE = os.environ.get("APP_TITLE", "SuperBot_APIScrapper")
APP_SHORT_NAME = os.environ.get("APP_SHORT_NAME", "SuperBot_APIScrapper")
APP_URL = os.environ.get("APP_URL", "https://telegram.dog/<xyz>")
# these platform informations were obtained
# on 27.01.2020 21:15:50 IST
APP_PLATFORM = [
"android",
"ios",
"wp",
"bb",
"desktop",
"web",
"ubp",
"other"
]
# if any of the platform, does not work
# please reopen
# https://github.com/SpEcHiDe/MyTelegramOrgRoBot/issues/3
APP_DESCRIPTION = os.environ.get(
"APP_DESCRIPTION",
"created using https://telegram.dog/<xyz>"
)
#
FOOTER_TEXT = os.environ.get("FTEXT", "❤️ @Disheartened_007")
# the strings used in the different messages
# in the bot
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
)
# the below strings are not meant to be configurable :\(
VFCN_CHECKING_ONE = "\"It is a beautiful and terrible thing, and should therefore be treated with great caution.\""
ORIGINAL_CODE = "aHR0cHM6Ly9naXRodWIuY29tL1NwRWNIaURlL015VGVsZWdyYW1PcmdSb0JvdC9yYXcvbWFzdGVyL2JvdC5weQ=="
VFCN_RETURN_STATUS = "'compareFiles' returned '{ret_status}'."
class Development(Config):
pass