mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 07:10:43 +00:00
Telegram/documents: guard verbose reply preview
This commit is contained in:
@@ -442,7 +442,7 @@ export async function buildTelegramInboundContextPayload(params: {
|
||||
});
|
||||
|
||||
if (visibleReplyTarget && shouldLogVerbose()) {
|
||||
const preview = visibleReplyTarget.body.replace(/\s+/g, " ").slice(0, 120);
|
||||
const preview = (visibleReplyTarget.body ?? "").replace(/\s+/g, " ").slice(0, 120);
|
||||
logVerbose(
|
||||
`telegram reply-context: replyToId=${visibleReplyTarget.id} replyToSender=${visibleReplyTarget.sender} replyToBody="${preview}"`,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user