- Switch from requests to httpx.AsyncClient (full async HTTP) - Add _request() with exponential backoff on 429/401 - Cache followees with 5-min TTL to reduce API calls - Remove dead code (_get_all_stories, instagram_password, session_file) - Graceful shutdown via asyncio.Event + SIGTERM/SIGINT handlers - Add /health command with connection status - Stream media downloads with httpx + aiofiles - Track story expiring_at for smart cleanup - Sanitize .env.example (remove real tokens)
11 lines
328 B
Plaintext
11 lines
328 B
Plaintext
# Telegram
|
|
TELEGRAM_BOT_TOKEN=your_bot_token_from_botfather
|
|
TELEGRAM_CHAT_ID=your_telegram_user_id
|
|
|
|
# Instagram (используется только для логирования, авторизация через cookies.txt)
|
|
INSTAGRAM_USERNAME=your_instagram_login
|
|
|
|
# Settings
|
|
CHECK_INTERVAL_MINUTES=15
|
|
MAX_MEDIA_SIZE_MB=50
|