feat(telegram): harden channel reliability with retries and error diagnostics

This commit is contained in:
William Valentin
2026-02-18 13:12:11 -08:00
parent 0ccbe65d3f
commit 42ae4a75df
11 changed files with 323 additions and 44 deletions
+6 -1
View File
@@ -213,7 +213,12 @@ export class GatewayServer {
getSessionAnalytics: ({ days, topLimit } = {}) => this.config.sessionManager.getSessionAnalytics({ days, topLimit }),
restart: this.config.restart,
getChannels: channelRegistry
? () => channelRegistry.list().map(a => ({ name: a.name, status: a.status }))
? () => channelRegistry.list().map(a => ({
name: a.name,
status: a.status,
...(a.lastError ? { error: a.lastError } : {}),
...(a.lastErrorAt ? { lastErrorAt: a.lastErrorAt } : {}),
}))
: undefined,
getServices: runtimeConfig && channelRegistry
? () => discoverServices(runtimeConfig, channelRegistry)