From 6801cc7ab8971019c0385e30470077f4307f4b1c Mon Sep 17 00:00:00 2001 From: Anton Bogdanovich <27antonb@gmail.com> Date: Thu, 7 May 2026 14:52:10 -0700 Subject: [PATCH] fix(telegram): wrap long voice media append --- pkg/channels/telegram/telegram.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkg/channels/telegram/telegram.go b/pkg/channels/telegram/telegram.go index b3685a7c6..0965bcedc 100644 --- a/pkg/channels/telegram/telegram.go +++ b/pkg/channels/telegram/telegram.go @@ -1060,7 +1060,10 @@ func (c *TelegramChannel) collectTelegramMessageParts( if msg.Voice != nil { voicePath := c.downloadFile(ctx, msg.Voice.FileID, ".ogg") if voicePath != "" { - parts.mediaPaths = append(parts.mediaPaths, storeMedia(voicePath, indexedMediaFilename("voice", ".ogg", index, total))) + parts.mediaPaths = append( + parts.mediaPaths, + storeMedia(voicePath, indexedMediaFilename("voice", ".ogg", index, total)), + ) parts.content = append(parts.content, "[voice]") } }