Auto-Rename / .env.example
github-actions[bot]
Automated sync from GitHub
49b8170
Raw History Blame Contribute Delete
1.57 kB
# ---- required ---------------------------------------------------------------
API_ID=1234567
API_HASH=0123456789abcdef0123456789abcdef
BOT_TOKEN=123456789:replace-with-your-bot-token
OWNER_ID=123456789
# ---- strongly recommended -----------------------------------------------------
# Hugging Face has no persistent disk. Point this at a free Postgres (Neon, Supabase, ...)
# so settings, thumbnails, admins and the login session survive restarts.
# Without it the bot uses a local SQLite file that is wiped on every restart.
DATABASE_URL=postgresql://user:password@host/dbname?sslmode=require
# ---- optional -------------------------------------------------------------------
# Extra allowed users (comma separated). The owner can also use /addadmin and /deladmin.
ADMIN_IDS=
# Numeric chat id of a channel/group where the bot posts start-up, job and error notices.
LOG_CHANNEL=
# Banner for /start: an https image URL or a file path.
START_IMAGE=
# Optional Telethon StringSession to log in with (otherwise stored in the database).
SESSION_STRING=
# Parallel MTProto connections per transfer (1-16).
TRANSFER_CONNECTIONS=8
# Files processed at the same time (1-4).
MAX_CONCURRENT_JOBS=1
# Largest file accepted, in MB (Telegram's upload limit for bots is 2000).
MAX_FILE_MB=2000
# 1 = parallel chunked transfers (falls back to the standard path on any error), 0 = standard only.
FAST_TRANSFER=1
# Seconds between progress-message edits (minimum 2).
PROGRESS_INTERVAL=4
# Set by the Dockerfile; only change for local runs.
# PORT=7860
# TEMP_DIR=/tmp/rename