fix(telegram): wrap long voice media append
This commit is contained in:
parent
09d3dff432
commit
6801cc7ab8
1 changed files with 4 additions and 1 deletions
|
|
@ -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]")
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue