diff --git a/src/telegram/bot-handlers.ts b/src/telegram/bot-handlers.ts index a71f4cafe3e..6df34fe2c60 100644 --- a/src/telegram/bot-handlers.ts +++ b/src/telegram/bot-handlers.ts @@ -211,12 +211,14 @@ export const registerTelegramHandlers = ({ cfg, commandOptions: { botUsername: entry.botUsername }, }); + if (entry.debounceLane === "forward") { + // Forwarded bursts often split text + media into adjacent updates. + // Debounce media-only forward entries too so they can coalesce. + return hasDebounceableText || entry.allMedia.length > 0; + } if (!hasDebounceableText) { return false; } - if (entry.debounceLane === "forward") { - return true; - } return entry.allMedia.length === 0; }, onFlush: async (entries) => {