Fix downloading photos with download_file (#1164)

This commit is contained in:
Lonami Exo
2019-04-24 12:37:19 +02:00
parent 08f8aa3c52
commit 21aec00e46
2 changed files with 2 additions and 2 deletions

View File

@@ -634,7 +634,7 @@ def get_input_location(location):
id=location.id,
access_hash=location.access_hash,
file_reference=location.file_reference,
thumb_size='' # Presumably to download one of its thumbnails
thumb_size=location.sizes[-1].type
))
if isinstance(location, types.FileLocationToBeDeprecated):