From 5c1975808a7675991b570afb70091c6c2d61870e Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Fri, 10 Apr 2026 20:01:30 +0300 Subject: [PATCH] tomatrix: add extension to unnamed documents from telegram --- pkg/connector/tomatrix.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/connector/tomatrix.go b/pkg/connector/tomatrix.go index 63121582..8452f955 100644 --- a/pkg/connector/tomatrix.go +++ b/pkg/connector/tomatrix.go @@ -632,7 +632,7 @@ func (tc *TelegramClient) convertMediaRequiringUpload( if content.Body != "" { content.FileName = content.Body } else { - content.Body = "file" + content.Body = "file" + exmime.ExtensionFromMimetype(content.Info.MimeType) } }