Merge branch 'master' of github.com:LonamiWebs/Telethon

This commit is contained in:
Lonami Exo 2017-01-30 13:36:38 +01:00
commit b080e086b7

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(