mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-10 21:54:31 +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({
|
const res = await withTelegramApiErrorLogging({
|
||||||
operation: "sendMessage",
|
operation: "sendMessage",
|
||||||
runtime,
|
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: () =>
|
fn: () =>
|
||||||
bot.api.sendMessage(chatId, htmlText, {
|
bot.api.sendMessage(chatId, htmlText, {
|
||||||
parse_mode: "HTML",
|
parse_mode: "HTML",
|
||||||
|
|||||||
Reference in New Issue
Block a user