-
Notifications
You must be signed in to change notification settings - Fork 15
/
sample_config.py
33 lines (22 loc) · 993 Bytes
/
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
import os
class Config(object):
# get a token from @BotFather
TG_BOT_TOKEN = os.environ.get("TG_BOT_TOKEN", "")
# The Telegram API things
# Get these values from my.telegram.org
APP_ID = int(os.environ.get("APP_ID", 12345))
API_HASH = os.environ.get("API_HASH", "")
# Array to store users who are authorized to use the bot
AUTH_USERS = set(int(x) for x in os.environ.get("AUTH_USERS", "").split())
# Banned Unwanted Members..
BANNED_USERS = set(int(x) for x in os.environ.get("BANNED_USERS", "").split())
# the download location, where the HTTP Server runs
DOWNLOAD_LOCATION = "./DOWNLOADS"
# Telegram maximum file upload size
TG_MAX_FILE_SIZE = 2097152000
# chunk size that should be used with requests
CHUNK_SIZE = 128
# default thumbnail to be used in the videos
DEF_THUMB_NAIL_VID_S = os.environ.get("DEF_THUMB_NAIL_VID_S", "")
# Sql Database url
DB_URI = os.environ.get("DATABASE_URL", "")