feat(telegram): harden channel reliability with retries and error diagnostics
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user