Merge pull request #18 from ttsda/master

Fix retrieving extension on download_document()
This commit is contained in:
Lonami 2017-01-19 16:21:56 +01:00 committed by GitHub
commit 08ce6c964e

View File

@ -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(