--- title: "Fix Razvedka Telegram session: graceful auth fallback, run on manager" date: 2026-02-13T18:40:50+01:00 draft: false tags: ["commit", "bojemoi", "fix", "stack"] categories: ["Git Activity"] summary: "Commit e9882bf par Betty — 2 fichier(s) modifié(s)" author: "Betty" --- ## 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 ### Fichiers modifiés ``` M razvedka/razvedka/main.py M stack/46-service-razvedka.yml ``` ### Statistiques ``` 2 files changed, 27 insertions(+), 11 deletions(-) ```