diff --git a/extensions/telegram/src/channel.ts b/extensions/telegram/src/channel.ts index 50509e51fca..a8745591db3 100644 --- a/extensions/telegram/src/channel.ts +++ b/extensions/telegram/src/channel.ts @@ -96,6 +96,7 @@ function buildTelegramSendOptions(params: { replyToId?: string | null; threadId?: string | number | null; silent?: boolean | null; + forceDocument?: boolean | null; }): TelegramSendOptions { return { verbose: false, @@ -106,6 +107,7 @@ function buildTelegramSendOptions(params: { replyToMessageId: parseTelegramReplyToMessageId(params.replyToId), accountId: params.accountId ?? undefined, silent: params.silent ?? undefined, + forceDocument: params.forceDocument ?? undefined, }; } @@ -386,6 +388,7 @@ export const telegramPlugin: ChannelPlugin { const send = resolveOutboundSendDep(deps, "telegram") ?? @@ -401,6 +404,7 @@ export const telegramPlugin: ChannelPlugin