Fixed download_document()

This commit is contained in:
Tiago 2017-01-19 15:16:39 +00:00
parent 78fe053ff3
commit 72e8773338

View File

@ -598,7 +598,7 @@ class TelegramClient:
print('Could not determine a filename for the document') print('Could not determine a filename for the document')
if add_extension: if add_extension:
file_path += get_extension(document.mime_type) file_path += get_extension(message_media_document)
self.download_file_loc( self.download_file_loc(
InputDocumentFileLocation( InputDocumentFileLocation(