Skip to content

Commit

Permalink
connector/tomatrix: fix video captions
Browse files Browse the repository at this point in the history
Signed-off-by: Sumner Evans <[email protected]>
  • Loading branch information
sumnerevans committed Nov 12, 2024
1 parent 40f259d commit 463277d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/connector/tomatrix.go
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,12 @@ func (c *TelegramClient) convertMediaRequiringUpload(ctx context.Context, portal
// Strip filename if it's a sticker
if isSticker {
content.FileName = ""
} else if content.FileName == "" {
if content.Body != "" {
content.FileName = content.Body
} else {
content.Body = "file"
}
}

if isVideoGif {
Expand Down

0 comments on commit 463277d

Please sign in to comment.