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 {