export function collectTelegramStatusIssues(
accounts: ChannelAccountSnapshot[],
): ChannelStatusIssue[] { const issues: ChannelStatusIssue[] = []; for (const entry of accounts) { const account = readTelegramAccountStatus(entry); if (!account) { continue;
} const accountId = resolveEnabledConfiguredAccountId(account); if (!accountId) { continue;
}
if (account.allowUnmentionedGroups === true) {
issues.push({
channel: "telegram",
accountId,
kind: "config",
message: "Config allows unmentioned group messages (requireMention=false). Telegram Bot API privacy mode will block most group messages unless disabled.",
fix: "In BotFather run /setprivacy → Disable for this bot (then restart the gateway).",
});
}
const audit = readTelegramGroupMembershipAuditSummary(account.audit); if (audit.hasWildcardUnmentionedGroups === true) {
issues.push({
channel: "telegram",
accountId,
kind: "config",
message: 'Telegram groups config uses "*" with requireMention=false; membership probing is not possible without explicit group IDs.',
fix: "Add explicit numeric group ids under channels.telegram.groups (or per-account groups) to enable probing.",
});
} if (audit.unresolvedGroups && audit.unresolvedGroups > 0) {
issues.push({
channel: "telegram",
accountId,
kind: "config",
message: `Some configured Telegram groups are not numeric IDs (unresolvedGroups=${audit.unresolvedGroups}). Membership probe can only check numeric group IDs.`,
fix: "Use numeric chat IDs (e.g. -100...) as keys in channels.telegram.groups for requireMention=false groups.",
});
} for (const group of audit.groups ?? []) { if (group.ok === true) { continue;
} const status = group.status ? ` status=${group.status}` : ""; const err = group.error ? `: ${group.error}` : ""; const baseMessage = `Group ${group.chatId} not reachable by bot.${status}${err}`;
issues.push({
channel: "telegram",
accountId,
kind: "runtime",
message: appendMatchMetadata(baseMessage, {
matchKey: group.matchKey,
matchSource: group.matchSource,
}),
fix: "Invite the bot to the group, then DM the bot once (/start) and restart the gateway.",
});
}
} return issues;
}
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.1 Sekunden
(vorverarbeitet am 2026-06-13)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.