Files
archie/internal
sam 75e30cb18a fix(telegram): drop pending updates before long polling
After the daemon was down ~9 hours it booted and answered every message
sent while it was gone -- 8 stale messages, 8 LLM turns, one burst.

Telegram holds undelivered updates for 24h and replays them on the first
getUpdates. launch()'s webhook branch already passes DropPendingUpdates;
the long-polling fallback had no equivalent, and polling is what this
deployment uses. deleteWebhook carries the flag even when no webhook is
registered -- the same call python-telegram-bot makes when it starts
polling -- and it doubles as a guard against a stale webhook, which
would otherwise fail getUpdates with 409.

Bounded by a 10s deadline so an unreachable Telegram cannot hold up
gateway startup.
2026-07-31 01:33:02 +10:00
..
2026-07-28 18:46:50 +10:00
2026-07-29 10:37:52 +10:00