forked from EDM115/unzip-bot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.py
21 lines (19 loc) · 888 Bytes
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Copyright (c) 2022 - 2024 EDM115
import os
class Config:
APP_ID = int(os.environ.get("APP_ID"))
API_HASH = os.environ.get("API_HASH")
BOT_TOKEN = os.environ.get("BOT_TOKEN")
LOGS_CHANNEL = int(os.environ.get("LOGS_CHANNEL"))
MONGODB_URL = os.environ.get("MONGODB_URL")
BOT_OWNER = int(os.environ.get("BOT_OWNER"))
DOWNLOAD_LOCATION = f"{os.path.dirname(__file__)}/Downloaded"
THUMB_LOCATION = f"{os.path.dirname(__file__)}/Thumbnails"
TG_MAX_SIZE = 2097152000
MAX_MESSAGE_LENGTH = 4096
# Default chunk size (0.005 MB → 1024*6) Increase if you need faster downloads
CHUNK_SIZE = 1024 * 1024 * 10 # 10 MB
BOT_THUMB = f"{os.path.dirname(__file__)}/bot_thumb.jpg"
MAX_CONCURRENT_TASKS = 75
MAX_TASK_DURATION_EXTRACT = 45 * 60 # 45 minutes (in seconds)
MAX_TASK_DURATION_MERGE = 90 * 60 # 1 hour 30 minutes (in seconds)