Commit graph

5 commits

Author SHA1 Message Date
Chris
828b5ebc0d
fix: prevent Telegram polling errors from blocking container startup (#989) (#1019)
This fix addresses the issue where the container gets stuck in an endless
loop of Telegram connection errors when the bot is configured but Telegram
is unreachable during startup.

Changes:
- Add 10-second startup delay before initializing Telegram polling to allow
  the system to settle
- Implement exponential backoff (5s to 5min) when Telegram connection fails
- Add rate-limited error logging (max once per minute per user) to reduce
  log spam and prevent event loop blocking
- Track error state per user to manage backoff independently
- Auto-reset error state on successful connection
- Update tests to account for new error state tracking

Fixes #989
2026-04-13 20:44:27 +03:00
Chris
542be2c1e9
Fix bug 366 (#764)
* Optimize DB

* Clean up names

* fixup! Clean up names

* fixup! fixup! Clean up names
2026-01-07 18:18:07 +02:00
Rafael Sargento
b3612dc0f2
changed ignore condition for telegram processing (#672) 2025-12-09 11:07:57 +02:00
Antonis Anastasiadis
e594d1075b
Linting cleanup (#99)
* Add eslint and prettier dependencies and configs

* Lint project.
2025-07-01 11:40:09 +03:00
Chris Veleris
8f5fd05926 Move recurring elements together 2025-06-20 12:04:36 +03:00