-
Notifications
You must be signed in to change notification settings - Fork 28
/
info.py
32 lines (27 loc) · 868 Bytes
/
info.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
# (c) @biisal
from os import getenv
import re
id_pattern = re.compile(r"^.\d+$")
def is_enabled(value, default):
if value.lower() in ["true", "yes", "1", "enable", "y"]:
return True
elif value.lower() in ["false", "no", "0", "disable", "n"]:
return False
else:
return default
ADMIN = int(getenv("ADMIN", ""))
API_ID = int(getenv("API_ID", ""))
API_HASH = str(getenv("API_HASH", ""))
BOT_TOKEN = str(getenv("BOT_TOKEN", ""))
MONGO_DB = str(
getenv(
"MONGO_DB",
"mongodb+srv://replacewithyourmongodb:[email protected]/?retryWrites=true&w=majority",
)
)
DEF_CAP = str(
getenv(
"DEF_CAP",
"<b><a href='telegram.me/bisal_files'>{file_name} Telegram : @Bisal_Files\n\nForward the file before Downloading.</a></b>",
)
)