diff --git a/extensions/telegram/src/bot-message-dispatch.media-dedup.ts b/extensions/telegram/src/bot-message-dispatch.media-dedup.ts index 88c3eca5164..0f1f8ef08cc 100644 --- a/extensions/telegram/src/bot-message-dispatch.media-dedup.ts +++ b/extensions/telegram/src/bot-message-dispatch.media-dedup.ts @@ -1,9 +1,3 @@ -/** - * Deduplicate media URLs in a final-reply payload against media already - * delivered via block replies. Returns the deduplicated payload, or - * undefined if the payload should be skipped entirely (all media already - * sent and no text remains). - */ export function deduplicateBlockSentMedia< T extends { mediaUrl?: string; mediaUrls?: string[]; text?: string }, >(payload: T, sentBlockMediaUrls: ReadonlySet): T | undefined { diff --git a/extensions/telegram/src/bot-message-dispatch.ts b/extensions/telegram/src/bot-message-dispatch.ts index f3c90238abb..baf963e5b72 100644 --- a/extensions/telegram/src/bot-message-dispatch.ts +++ b/extensions/telegram/src/bot-message-dispatch.ts @@ -1166,10 +1166,6 @@ export const dispatchTelegramMessage = async ({ recordInboundSession: context.turn.recordInboundSession, record: context.turn.record, runDispatch: () => { - // Track media URLs delivered via block replies so final replies - // can skip duplicates. Without this, non-streaming Telegram - // delivers each MEDIA: attachment twice — once from the - // media-only block reply and once from the final reply. const sentBlockMediaUrls = new Set(); return telegramDeps.dispatchReplyWithBufferedBlockDispatcher({