fix(telegram): wrap long voice media append
This commit is contained in:
1 parent
09d3dff432
commit
6801cc7ab8
1 file changed
+4
-1
@@ -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]")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user