# ---------------------------------------------------------------------------
# Telegram
# ---------------------------------------------------------------------------
# Token received from @BotFather. Never commit the real value.
BOT_TOKEN=8726517618:AAHlkYA_edjmOQFNXeD7tSpCmbNj1l7hRSU
# Comma-separated numeric Telegram user IDs. Example: 111111111,222222222
ADMIN_IDS=7658106221
# Optional fallback destination (numeric channel/group ID or your numeric ID).
# DEFAULT_CHAT_ID=7658106221  (private chat: rejected, set a channel/group instead)

# If you run a self-hosted, trusted Telegram Bot API server, set its base URL.
# Leave empty to use https://api.telegram.org. Do not point this at a third party.
TELEGRAM_API_BASE_URL=
PROXY_URL=http://127.0.0.1:10809

# ---------------------------------------------------------------------------
# Storage and logging
# ---------------------------------------------------------------------------
DATABASE_PATH=./data/bot.db
LOG_FILE=./logs/bot.log
LOG_LEVEL=INFO

# ---------------------------------------------------------------------------
# Crawl and download limits
# ---------------------------------------------------------------------------
ALLOWED_DOMAINS=luticlip.com,taktube.net,takcdn.com
# Optional subset of ALLOWED_DOMAINS for which yt-dlp may be used.
# Keep empty unless you explicitly trust the site and have permission.
luticlip.com,taktube.net
MAX_PAGES_PER_JOB=20
MAX_VIDEOS_PER_JOB=100
MAX_CONCURRENT_DOWNLOADS=2
MAX_FILE_SIZE_MB=512
REQUEST_TIMEOUT=30
RETRY_COUNT=3
MAX_JOB_SECONDS=1800
PAGE_DELAY_SECONDS=1.0
MAX_HTML_MB=5
RESPECT_ROBOTS_TXT=true
HTTP_USER_AGENT=TelegramVideoBot/1.0 (authorized-content-publisher)

# ---------------------------------------------------------------------------
# Browser (Playwright)
# ---------------------------------------------------------------------------
PLAYWRIGHT_HEADLESS=true
# Use Chromium only when the selected adapter explicitly requires it, or when
# the initial HTML has no media and this fallback is enabled.
BROWSER_FALLBACK_ENABLED=false

# ---------------------------------------------------------------------------
# Media / Telegram delivery
# ---------------------------------------------------------------------------
FFMPEG_ENABLED=true
SEND_THUMBNAILS=true
# Current public Bot API limit is 50 MB. Set a larger value only when using a
# trusted self-hosted Bot API server that supports it.
TELEGRAM_MAX_UPLOAD_MB=512
TELEGRAM_CAPTION_LIMIT=1024
TELEGRAM_UPLOAD_TIMEOUT=1800
PROGRESS_UPDATE_INTERVAL=15
USER_RATE_LIMIT_SECONDS=0.8
