tomatrix: add extension to unnamed documents from telegram
This commit is contained in:
@@ -632,7 +632,7 @@ func (tc *TelegramClient) convertMediaRequiringUpload(
|
|||||||
if content.Body != "" {
|
if content.Body != "" {
|
||||||
content.FileName = content.Body
|
content.FileName = content.Body
|
||||||
} else {
|
} else {
|
||||||
content.Body = "file"
|
content.Body = "file" + exmime.ExtensionFromMimetype(content.Info.MimeType)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user