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]") } }