| Variable | Type | Description |
|---|
BOT_TOKEN | str | Telegram Bot Token obtained from @BotFather. |
OWNER_ID | int | Telegram User ID (not username) of the bot's owner. |
TELEGRAM_API | int | API ID used to authenticate your Telegram account. Obtainable from my.telegram.org. |
TELEGRAM_HASH | str | API hash used to authenticate your Telegram account. Obtainable from my.telegram.org. |
| Variable | Type | Description |
|---|
TG_PROXY | dict | Proxy settings as dict. Example: {"scheme": "socks5", "hostname": "11.22.33.44", "port": 1234, "username": "user", "password": "pass"}. Username/password optional. |
USER_SESSION_STRING | str | Use to access Telegram premium features. Generate using python3 generate_string_session.py. Note: Use in supergroup only. |
DATABASE_URL | str | MongoDB connection string. See Create Database. Stores bot/user settings, RSS feeds, and task history. |
CMD_SUFFIX | str | int | Suffix to add at the end of all commands. |
AUTHORIZED_CHATS | str | User/Chat/Topic IDs to authorize. Format: chat_id, `chat_id |
SUDO_USERS | str | User IDs with sudo permission. Separate by spaces. |
UPLOAD_PATHS | dict | Dict with upload paths. Example: {"path 1": "remote:", "path 2": "gdrive id", ...} |
DEFAULT_UPLOAD | str | rc for RCLONE_PATH, gd for GDRIVE_ID. Default: rc. Read More. |
INCLUDED_EXTENSIONS | str | File extensions to be uploaded/cloned. EXCLUDED_EXTENSIONS will be ignore if you filled this ! Separate them by spaces. |
EXCLUDED_EXTENSIONS | str | File extensions to skip during processing. Separate by spaces. |
INCOMPLETE_TASK_NOTIFIER | bool | Notify after restart for incomplete tasks. Requires DATABASE_URL and the bot to be in a supergroup. Default: False. |
FILELION_API | str | API key from FileLion. |
STREAMWISH_API | str | API key from StreamWish. |
YT_DLP_OPTIONS | dict | Dict of yt-dlp options. Docs. Convert script. |
USE_SERVICE_ACCOUNTS | bool | Use Google API service accounts. See guide. |
FFMPEG_CMDS | dict | Dict with lists of ffmpeg commands. Start with arguments only. Use -ff key to apply. Add -del to auto-delete source. See example and notes. |
NAME_SUBSTITUTE | str | Replace/remove words/characters using source/target format. Use \ for escaping special characters. |
| Variable | Type | Description |
|---|
GDRIVE_ID | str | Google Drive Folder/TeamDrive ID or root. |
IS_TEAM_DRIVE | bool | Set True if GDRIVE_ID refers to a TeamDrive. Default: False. |
INDEX_URL | str | Index URL for the Google Drive. Reference. |
STOP_DUPLICATE | bool | If True, the bot will check for duplicate file/folder names in Google Drive before uploading. Default: False. |
| Variable | Type | Description |
|---|
RCLONE_PATH | str | Default Rclone upload path (e.g., myremote:path). |
RCLONE_FLAGS | str | Additional Rclone flags. Use `--key:value |
RCLONE_SERVE_URL | str | URL for Rclone serve. Example: http://myip or http://myip:port. |
RCLONE_SERVE_PORT | int | Port. Default: 8080. |
RCLONE_SERVE_USER | str | Serve username. |
RCLONE_SERVE_PASS | str | Serve password. |
| Variable | Type | Description |
|---|
UPSTREAM_REPO | str | GitHub repo link. For private, use https://username:token@github.com/username/repo. Get token. |
UPSTREAM_BRANCH | str | Branch to use. Default: master. |
| Variable | Type | Description |
|---|
LEECH_SPLIT_SIZE | int | Split size in bytes for leeching. Default: 2GB (standard users), 4GB (Telegram premium users). |
AS_DOCUMENT | bool | Upload leeched files as documents. Default: False (uploads as media). |
USER_TRANSMISSION | bool | Use user session for uploads/downloads in supergroups. Default: False. |
HYBRID_LEECH | bool | Switch between bot and user sessions for leeching based on file size. Default: False. |
LEECH_DUMP_CHAT | list[str/int] | Chat/Channel ID(s) to send leeched files. Use -100 prefix for private channels or `chat_id |
THUMBNAIL_LAYOUT | str | Layout like 2x2, 4x4, 3x3, etc. |
| Variable | Type | Description |
|---|
TORRENT_TIMEOUT | int | Timeout in seconds for dead torrents. |
BASE_URL | str | Bot URL. Example: http://myip or http://myip:port. |
BASE_URL_PORT | int | Port. Default: 80. |
WEB_PINCODE | bool | Ask PIN before file selection. Default: False. |
| Variable | Type | Description |
|---|
JD_EMAIL | str | Email for My JDownloader. |
JD_PASS | str | Password for My JDownloader. You may zip your cfg/ directory as cfg.zip and include it in the repository. |
| Variable | Type | Description |
|---|
USENET_SERVERS | list | List of dictionaries with Usenet server configurations. Example: |
[{'name': 'main', 'host': '', 'port': 563, 'timeout': 60, 'username': '', 'password': '', 'connections': 8, 'ssl': 1, 'ssl_verify': 2, 'ssl_ciphers': '', 'enable': 1, 'required': 0, 'optional': 0, 'retention': 0, 'send_group': 0, 'priority': 0}]
More info
| Variable | Type | Description |
|---|
RSS_DELAY | int | Time interval in seconds. Default: 600. |
RSS_SIZE_LIMIT | int | Max item size in bytes. Default: 0. |
RSS_CHAT | str/int | Chat ID or username. Use `channel |
Note: RSS_CHAT is mandatory. Requires either USER_SESSION_STRING or linked group/channel setup.
| Variable | Type | Description |
|---|
QUEUE_ALL | int | Max concurrent upload + download tasks. |
QUEUE_DOWNLOAD | int | Max concurrent download tasks. |
QUEUE_UPLOAD | int | Max concurrent upload tasks. |
| Variable | Type | Description |
|---|
HYDRA_IP | str | IP address of NZBHydra2. |
HYDRA_API_KEY | str | API key from NZBHydra2. |
| Variable | Type | Description |
|---|
METADATA_KEY | str | Key used to tag or fetch metadata. |
WATERMARK_KEY | str | Key used for watermarking files or content. |
SET_COMMANDS | bool | Whether to register bot commands on startup. |
TOKEN_TIMEOUT | int | Timeout in seconds for token/session expiry. |
PAID_CHANNEL_ID | int | Telegram Channel ID that users must join to use the bot without a token. |
PAID_CHANNEL_LINK | str | Public or invite link to the paid Telegram channel. |
DELETE_LINKS | bool | If True, automatically delete download or share links after a certain period or action. |
FSUB_IDS | str | Comma-separated Chat IDs of channels users must subscribe to (forced subscription). |
LOG_CHAT_ID | int | Chat ID where leech logs are sent. |
LEECH_FILENAME_CAPTION | str | Template caption for leeched/downloaded filenames. |
INSTADL_API | str | URL or endpoint for InstaDL API integration. |
HEROKU_APP_NAME | str | Name of your Heroku app, used to get BASE_URL automatically. |
HEROKU_API_KEY | str | API key for accessing and controlling your Heroku app. |
NAME_PREFIX | str | Name prefix. |