tomatrix: always add extension for photos
This commit is contained in:
@@ -719,9 +719,9 @@ func (tc *TelegramClient) convertMediaRequiringUpload(
|
|||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if msgMedia.TypeID() == tg.MessageMediaPhotoTypeID {
|
}
|
||||||
content.Body = content.Body + exmime.ExtensionFromMimetype(content.Info.MimeType)
|
if _, isPhoto := msgMedia.(*tg.MessageMediaPhoto); isPhoto {
|
||||||
}
|
content.Body = content.Body + exmime.ExtensionFromMimetype(content.Info.MimeType)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Handle spoilers
|
// Handle spoilers
|
||||||
|
|||||||
Reference in New Issue
Block a user