tomatrix: add extension to unnamed documents from telegram

This commit is contained in:
Tulir Asokan
2026-04-10 20:01:30 +03:00
parent 2b79d842a4
commit 5c1975808a

View File

@@ -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)
}
}