mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-08 04:52:30 +00:00
Correctly sort PhotoSizeProgressive thumb size
This commit is contained in:
@@ -740,6 +740,8 @@ class DownloadMethods:
|
||||
return 1, len(thumb.bytes)
|
||||
if isinstance(thumb, types.PhotoSize):
|
||||
return 1, thumb.size
|
||||
if isinstance(thumb, types.PhotoSizeProgressive):
|
||||
return 1, max(thumb.sizes)
|
||||
if isinstance(thumb, types.VideoSize):
|
||||
return 2, thumb.size
|
||||
|
||||
|
Reference in New Issue
Block a user