-
-
Notifications
You must be signed in to change notification settings - Fork 27
/
sample_config.py
56 lines (50 loc) · 1.94 KB
/
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
import os
class Config((object)):
# get a token from @BotFather
TG_BOT_TOKEN = os.environ.get("TG_BOT_TOKEN", "")
# The Telegram API things
APP_ID = int(os.environ.get("APP_ID", 12345))
API_HASH = os.environ.get("API_HASH")
AUTH_USERS = os.environ.get("AUTH_USERS",1940030638)
# Get these values from my.telegram.org
# Banned Unwanted Members..
BANNED_USERS = {int(x) for x in os.environ.get("BANNED_USERS", "").split()}
# the download location, where the HTTP Server runs
DOWNLOAD_LOCATION = "./DOWNLOADS"
# The download location for auth users.
# Telegram maximum file upload size
MAX_FILE_SIZE = 50000000
TG_MAX_FILE_SIZE = 2097152000
FREE_USER_MAX_FILE_SIZE = 50000000
# chunk size that should be used with requests
CHUNK_SIZE = int(os.environ.get("CHUNK_SIZE", 128))
# default thumbnail to be used in the videos
DEF_THUMB_NAIL_VID_S = None # os.environ.get("DEF_THUMB_NAIL_VID_S", "")
# 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", "")
# maximum message length in Telegram
MAX_MESSAGE_LENGTH = 4096
# set timeout for subprocess
PROCESS_MAX_TIMEOUT = 3600
# watermark file
DEF_WATER_MARK_FILE = ""
# your telegram id
OWNER_ID = int(os.environ.get("OWNER_ID", "1940030638"))
# database session name, example: xurluploader
SESSION_NAME = os.environ.get("SESSION_NAME", "UrlUploadDcBot")
# database uri (mongodb)
DATABASE_URL = os.environ.get("DATABASE_URL", "")
PROCESS_TEXT = """
Process: {}
"""
LOGGED_AS_USER = """
Successfully Logged Into Mega.nz User Account
"""
LOGIN_ERROR_TEXT = """
Can't Get Mega Email and Password Login as an Anonymouse User
"""
ERROR_TEXT = """
Log: {}
Save the Log file and Send it to @Nexa_bots for Help :)
"""