# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ # Copy this file to .env and fill in every required value. # Never commit the real .env to version control. # ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ # ── Telegram ────────────────────────────────────────────────────────────────── # Bot token from @BotFather TELEGRAM_BOT_TOKEN=1234567890:AAFxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx # API credentials from https://my.telegram.org (required by Pyrogram/MTProto) TELEGRAM_API_ID=12345678 TELEGRAM_API_HASH=abcdef1234567890abcdef1234567890 # ── GitHub ──────────────────────────────────────────────────────────────────── # Personal Access Token with repo scope GITHUB_TOKEN=ghp_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx # Repository coordinates GITHUB_OWNER=your_username GITHUB_REPO=your_repo_name GITHUB_BRANCH=main # optional, default: main # ── Upload behaviour ────────────────────────────────────────────────────────── UPLOAD_BASE_PATH=uploads # optional, default: uploads FILE_CONFLICT_STRATEGY=version # optional: "version" (default) or "overwrite" # Files this size or larger (in MB) are stored via Git LFS instead of the # Contents API (which has a 100 MB hard limit). # Lower this value if you frequently upload files between 50–100 MB. LFS_THRESHOLD_MB=50 # optional, default: 50 # ── VPS disk cleanup ────────────────────────────────────────────────────────── # When enabled, the bot deletes the oldest uploaded files from the repo once # total size exceeds CLEANUP_MAX_REPO_MB. Useful for small (10 GB) VPS disks. CLEANUP_ENABLED=false # optional, default: false CLEANUP_MAX_REPO_MB=800 # optional, default: 800 — trigger threshold (MB) CLEANUP_KEEP_LATEST=10 # optional, default: 10 — newest files never deleted # ── Access control ──────────────────────────────────────────────────────────── # Comma-separated Telegram user IDs that may use the bot. # Leave empty to allow everyone. ALLOWED_USER_IDS=123456789,987654321 # Telegram user ID that receives error reports. Leave empty to disable. ADMIN_USER_ID=123456789 # ── Logging ─────────────────────────────────────────────────────────────────── LOG_LEVEL=INFO # optional: DEBUG, INFO, WARNING, ERROR LOG_FILE=logs/bot.log # optional, default: logs/bot.log