feat(telegram): harden channel reliability with retries and error diagnostics
This commit is contained in:
+6
-1
@@ -378,7 +378,12 @@ const checkTelegram: Check = async (ctx) => {
|
||||
if (!ctx.config.telegram.bot_token || ctx.config.telegram.bot_token.length < 10) {
|
||||
return { status: 'warn', label: 'Telegram bot configured', detail: 'token looks too short' };
|
||||
}
|
||||
return { status: 'pass', label: 'Telegram bot configured', detail: `(${ctx.config.telegram.allowed_chat_ids.length} allowed chat(s))` };
|
||||
const mentionMode = ctx.config.telegram.require_mention ? 'mention-gated groups' : 'all allowed group messages';
|
||||
return {
|
||||
status: 'pass',
|
||||
label: 'Telegram bot configured',
|
||||
detail: `(${ctx.config.telegram.allowed_chat_ids.length} allowed chat(s), mode: ${mentionMode})`,
|
||||
};
|
||||
};
|
||||
|
||||
const checkMcpServers: Check = async (ctx) => {
|
||||
|
||||
Reference in New Issue
Block a user