mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-07 22:09:57 +00:00
fix(telegram): count onError events toward fallback
This commit is contained in:
@@ -640,9 +640,7 @@ export const dispatchTelegramMessage = async ({
|
||||
}
|
||||
},
|
||||
onError: (err, info) => {
|
||||
if (info.kind !== "silent") {
|
||||
deliveryState.failedNonSilent += 1;
|
||||
}
|
||||
deliveryState.failedNonSilent += 1;
|
||||
runtime.error?.(danger(`telegram ${info.kind} reply failed: ${String(err)}`));
|
||||
},
|
||||
onReplyStart: createTypingCallbacks({
|
||||
|
||||
Reference in New Issue
Block a user