mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-25 10:53:44 +03:00
Handle progressive size in _photo_size_byte_count
This commit is contained in:
parent
73b9de2085
commit
b102f1f345
|
@ -1550,5 +1550,7 @@ def _photo_size_byte_count(size):
|
|||
return len(size.bytes)
|
||||
elif isinstance(size, types.PhotoSizeEmpty):
|
||||
return 0
|
||||
elif isinstance(size, types.PhotoSizeProgressive):
|
||||
return max(size.sizes)
|
||||
else:
|
||||
return None
|
||||
|
|
Loading…
Reference in New Issue
Block a user