3 Commits

Author SHA1 Message Date
330e48beaa refactor: full async, rate limit backoff, graceful shutdown, health endpoint
- 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)
2026-06-17 16:03:47 +07:00
3e792659f2 feat: /debug @username command + verbose story logging
- /debug @username shows raw API response for stories endpoint
- Debug logging enabled for story fetch
- /status now shows SQLite stats (story/post counts)
2026-06-17 12:52:20 +07:00
6c51413d12 feat: Telegram bot for Instagram monitoring via instaloader
- aiogram 3 bot with commands /start /check /status /stop
- InstagramMonitor: periodic check of followees stories and posts
- Docker deployment with docker-compose
- State tracking to avoid duplicate sends
- Auto-cleanup of old media files
2026-06-17 11:30:13 +07:00