-
-
Notifications
You must be signed in to change notification settings - Fork 78
Expand file tree
/
Copy pathconfig.py
More file actions
20 lines (10 loc) · 682 Bytes
/
config.py
File metadata and controls
20 lines (10 loc) · 682 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/env python3
### Importing
from os import environ
class Config(object):
TG_BOT_TOKEN = environ.get("BOT_TOKEN", "") # Make a bot from https://t.me/BotFather and enter the token here
APP_ID = int(environ.get("API_ID", 12345)) # Get this value from https://my.telegram.org/apps
API_HASH = environ.get("API_HASH", "") # Get this value from https://my.telegram.org/apps
OWNER_ID = int(environ.get("OWNER_ID", None)) # Your(owner's) telegram id
MONGO_STR = environ.get("MONGO_STR", "") # Get from MongoDB Atlas
DOWNLOAD_LOCATION = "app//DOWNLOADS//" # The download location for users. (Don't change anything in this field!)