Commit e9882bf
| Repository | bojemoi |
| Branch | main |
| Auteur | Betty |
| Hash | e9882bfecdcd0703d43c7fad1e6a98df660b313c |
| Date | 2026-02-13 |
Description
The service crashed in a loop because the Telethon session expired and prompted for an interactive auth code, which fails in Docker Swarm.
- main.py: in non-interactive mode, only use existing session; if expired, log error and fall back to Twitter-only instead of crashing. Support TELEGRAM_INTERACTIVE=1 for explicit re-auth and TELEGRAM_CODE for one-shot auth.
- stack: move placement to manager node (session volume is node-local), comment out twitter_bearer_token secret until created.
Co-Authored-By: Claude Opus 4.6 noreply@anthropic.com