You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On v2026.5.7 (Windows 11, 8 Telegram bot accounts) the gateway entered a Telegram delivery cascade with two distinct failure modes back-to-back:
Pre-restart: 148s getUpdates polling stall, followed by ~50 consecutive sendChatAction "Network request failed" errors firing every ~3s with no backoff. Network was healthy throughout — DNS, TCP, TLS to api.telegram.org all OK from the same host at the same time. The polling-cycle's internal transport rebuild fired (closing stale transport before rebuild → rebuilding transport for next polling cycle) but did not repair the sendChatAction HTTP agent — outbound failures continued unabated until a full gateway restart.
Post-restart: During channels.telegram.start-account (8 bots starting in parallel) the gateway hit event-loop starvation (eventLoopDelayMaxMs=8384.4ms, timer delayed 5604ms, likely event-loop starvation), causing multiple getMe calls to time out at 10–15s.
This appears to be a combination of, or interaction between, several already-tracked issues:
The new signal here is that both halves reproduce cleanly on v2026.5.7 — the closed .4.24/.4.25 issues were not, in fact, fully resolved on .5.7; and the inner polling-rebuild explicitly does not heal the outbound HTTP agent.
So the failures were not network-level — strongly suggests a stale persistent HTTP/keep-alive socket inside the sendChatAction HTTP agent that the polling-rebuild path doesn't touch.
8 bots starting in parallel + first-call agent-model resolution + session-locks recovery + model warmup all bunched into the same tick window. The 5.6s timer delay confirms the loop was actually parked, not just slow.
Reproduction
Run a gateway with ≥8 Telegram accounts on Windows. Leave it idle overnight, then send an inbound message. Most days nothing happens; on a stall day the pre-restart cascade above appears. Restart the gateway and you'll see the post-restart starvation pattern reliably during start-account fanout.
Proposed fixes (for triage)
Outbound HTTP agent rebuild. When polling-rebuild fires, also dispose the outbound (sendChatAction/sendMessage) agent — or share a single Undici/grammy transport instance so a single rebuild fixes both directions. The current code path leaves outbound permanently broken until full restart.
Bound multi-account start-account fanout. Throttle to N=2–3 concurrent start-account calls instead of all 8 at once, or move the first getMe off the hot path so model warmup + agent prep don't compound.
Summary
On
v2026.5.7(Windows 11, 8 Telegram bot accounts) the gateway entered a Telegram delivery cascade with two distinct failure modes back-to-back:getUpdatespolling stall, followed by ~50 consecutivesendChatAction"Network request failed" errors firing every ~3s with no backoff. Network was healthy throughout — DNS, TCP, TLS toapi.telegram.orgall OK from the same host at the same time. The polling-cycle's internal transport rebuild fired (closing stale transport before rebuild→rebuilding transport for next polling cycle) but did not repair thesendChatActionHTTP agent — outbound failures continued unabated until a full gateway restart.channels.telegram.start-account(8 bots starting in parallel) the gateway hit event-loop starvation (eventLoopDelayMaxMs=8384.4ms,timer delayed 5604ms, likely event-loop starvation), causing multiplegetMecalls to time out at 10–15s.This appears to be a combination of, or interaction between, several already-tracked issues:
sendChatActioninfinite retry loop with no backoff (still OPEN)Network request for 'X' failed!(no "after") never classified as recoverable forcontext: send, drops outbound messages #80362 —Network request for 'X' failed!regex too strict; drops outbound (still OPEN)The new signal here is that both halves reproduce cleanly on v2026.5.7 — the closed
.4.24/.4.25issues were not, in fact, fully resolved on.5.7; and the inner polling-rebuild explicitly does not heal the outbound HTTP agent.Environment
webchat v2026.5.7(per[ws]handshake banner)browser, device-pair, file-transfer, google, memory-core, microsoft, phone-control, talk-voice, telegramalex,tony,alex-demo,cllawway,alan,donald-clawmp,clawd,daniel-clawstley)--require force-ipv4.js(NODE_OPTIONS)Pre-restart cascade (excerpt)
Network was healthy during the cascade
Run from the same host while the failures were still firing:
So the failures were not network-level — strongly suggests a stale persistent HTTP/keep-alive socket inside the
sendChatActionHTTP agent that the polling-rebuild path doesn't touch.Post-restart event-loop starvation
8 bots starting in parallel + first-call agent-model resolution + session-locks recovery + model warmup all bunched into the same tick window. The 5.6s timer delay confirms the loop was actually parked, not just slow.
Reproduction
Run a gateway with ≥8 Telegram accounts on Windows. Leave it idle overnight, then send an inbound message. Most days nothing happens; on a stall day the pre-restart cascade above appears. Restart the gateway and you'll see the post-restart starvation pattern reliably during
start-accountfanout.Proposed fixes (for triage)
sendChatAction/sendMessage) agent — or share a single Undici/grammy transport instance so a single rebuild fixes both directions. The current code path leaves outbound permanently broken until full restart.sendChatActionfailures. Per Bug: Telegram sendChatAction infinite retry loop with no backoff #56096 — the 3s/3s/3s repeat with no jitter or escalation is a hot loop.start-accountcalls instead of all 8 at once, or move the firstgetMeoff the hot path so model warmup + agent prep don't compound.Network request for 'X' failed!(no "after") never classified as recoverable forcontext: send, drops outbound messages #80362 soNetwork request for 'sendChatAction' failed!is classified recoverable and a retry-with-fresh-socket can fire instead of dropping the send.Related
Network request for 'X' failed!(no "after") never classified as recoverable forcontext: send, drops outbound messages #80362 (open) — strict regex drops outbound on bare grammy failures.4.24/.4.25; this report demonstrates the same patterns reproduce onv2026.5.7.4.23 → .4.25+(may share start-account fanout root cause)