-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathconfig.py
23 lines (18 loc) · 822 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
import os
class Config:
BOT_TOKEN = os.environ.get('BOT_TOKEN', None)
APP_ID = os.environ.get('APP_ID', None)
API_HASH = os.environ.get('API_HASH', None)
#comma seperated user id of users who are allowed to use
DOWNLOAD_DIR = 'downloads'
OWNER_ID = int(os.environ.get("OWNER_ID", 1316963576))
UPDATES_CHANNEL = os.environ.get("UPDATES_CHANNEL", None)
# your telegram id
OWNER_ID = int(os.environ.get("OWNER_ID", ""))
# database session name, example: xurluploader
SESSION_NAME = os.environ.get("SESSION_NAME", "")
# database uri (mongodb)
DATABASE_URL = os.environ.get("DATABASE_URL", "")
LOG_CHANNEL = int(os.environ.get("LOG_CHANNEL", "-100"))
BROADCAST_AS_COPY = bool(os.environ.get("BROADCAST_AS_COPY", "False"))
DOWNLOAD_LOCATION = "./DOWNLOADS"