From 463277def05b02c15cf5f81a868c328fd6a20a68 Mon Sep 17 00:00:00 2001 From: Sumner Evans Date: Tue, 12 Nov 2024 09:58:06 -0700 Subject: [PATCH] connector/tomatrix: fix video captions Signed-off-by: Sumner Evans --- pkg/connector/tomatrix.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkg/connector/tomatrix.go b/pkg/connector/tomatrix.go index 8478f9d6..7812005a 100644 --- a/pkg/connector/tomatrix.go +++ b/pkg/connector/tomatrix.go @@ -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 {