mirror of
https://github.com/mautrix/telegram.git
synced 2026-05-17 07:25:46 +03:00
tomatrix: add extension to unnamed documents from telegram
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user