Merge ffd6b65651159706422f5c90e106ec9d0698b8de into 598f1826d8b2bc969aace2c6459824737667218c
This commit is contained in:
commit
ddc023694a
@ -305,8 +305,11 @@ export function createTelegramInboundBufferRuntime(params: {
|
||||
const combinedText = entries
|
||||
.map((entry) => entry.msg.text ?? entry.msg.caption ?? "")
|
||||
.filter(Boolean)
|
||||
.join("\n");
|
||||
const combinedMedia = entries.flatMap((entry) => entry.allMedia);
|
||||
.join("
|
||||
");
|
||||
// Fix: only use last entry's media to prevent ghost attachments from debounce buffer
|
||||
// See: https://github.com/openclaw/openclaw/issues/46655
|
||||
const combinedMedia = entries.at(-1)?.allMedia ?? [];
|
||||
if (!combinedText.trim() && combinedMedia.length === 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
@ -226,7 +226,9 @@ export const registerTelegramHandlers = ({
|
||||
.map((entry) => entry.msg.text ?? entry.msg.caption ?? "")
|
||||
.filter(Boolean)
|
||||
.join("\n");
|
||||
const combinedMedia = entries.flatMap((entry) => entry.allMedia);
|
||||
// Fix: only use last entry's media to prevent ghost attachments from debounce buffer
|
||||
// See: https://github.com/openclaw/openclaw/issues/46655
|
||||
const combinedMedia = entries.at(-1)?.allMedia ?? [];
|
||||
if (!combinedText.trim() && combinedMedia.length === 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user