forked from Meliodas-Demonking/DRM-Downloader
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py
50 lines (34 loc) · 1.65 KB
/
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
import os
class Config(object):
# get a token from @BotFather
TG_BOT_TOKEN = os.environ.get("TG_BOT_TOKEN", "6857162781:AAEZ3C2VwSM8MaAlQAeIdiqdwfxjpmLPH3U")
# The Telegram API things
# Get these values from my.telegram.org
APP_ID = int(os.environ.get("APP_ID", '23990433'))
API_HASH = os.environ.get("API_HASH", "e6c4b6ee1933711bc4da9d7d17e1eb20")
# Array to store users who are authorized to use the bot
AUTH_USERS = set(int(x) for x in os.environ.get("AUTH_USERS", "5821871362").split())
# Ban Unwanted Members..
BANNED_USERS = []
# 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
# Generate screenshots for file after uploading
# Defaults to True
SCREENSHOTS = os.environ.get("SCREENSHOTS", "True")
# default thumbnail to be used in the videos
DEF_THUMB_NAIL_VID_S = os.environ.get("DEF_THUMB_NAIL_VID_S", "https://placehold.it/90x90")
# proxy for accessing youtube-dl in GeoRestricted Areas
# Get your own proxy from https://github.com/rg3/youtube-dl/issues/1091#issuecomment-230163061
HTTP_PROXY = os.environ.get("HTTP_PROXY", "http://130.180.208.145:8080")
# maximum message length in Telegram
MAX_MESSAGE_LENGTH = 4096
# set timeout for subprocess
PROCESS_MAX_TIMEOUT = 3600
# watermark file
DEF_WATER_MARK_FILE = ""
# Sql Database url
DB_URI = os.environ.get("DATABASE_URL", "mongodb+srv://sankar:[email protected]/?retryWrites=true&w=majority")