mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-06-20 20:16:38 +00:00
Merge pull request #18 from ttsda/master
Fix retrieving extension on download_document()
This commit is contained in:
commit
08ce6c964e
@ -598,7 +598,7 @@ class TelegramClient:
|
||||
print('Could not determine a filename for the document')
|
||||
|
||||
if add_extension:
|
||||
file_path += get_extension(document.mime_type)
|
||||
file_path += get_extension(message_media_document)
|
||||
|
||||
self.download_file_loc(
|
||||
InputDocumentFileLocation(
|
||||
|
Loading…
Reference in New Issue
Block a user