mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 18:24:35 +00:00
chore(telegram): suppress handled empty-text retry logs
This commit is contained in:
@@ -582,7 +582,10 @@ async function sendTelegramText(
|
||||
const res = await withTelegramApiErrorLogging({
|
||||
operation: "sendMessage",
|
||||
runtime,
|
||||
shouldLog: (err) => !PARSE_ERR_RE.test(formatErrorMessage(err)),
|
||||
shouldLog: (err) => {
|
||||
const errText = formatErrorMessage(err);
|
||||
return !PARSE_ERR_RE.test(errText) && !EMPTY_TEXT_ERR_RE.test(errText);
|
||||
},
|
||||
fn: () =>
|
||||
bot.api.sendMessage(chatId, htmlText, {
|
||||
parse_mode: "HTML",
|
||||
|
||||
Reference in New Issue
Block a user