Skip to content

Commit a30e49f

Browse files
committed
Ignore PhotoPathSize for now
1 parent 5cbe03e commit a30e49f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • pyrogram/types/messages_and_media

pyrogram/types/messages_and_media/photo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def _parse(client, photo: "raw.types.Photo", ttl_seconds: int = None) -> Optiona
8484
if isinstance(photo, raw.types.Photo):
8585
big = photo.sizes[-1]
8686

87-
if isinstance(big, raw.types.PhotoStrippedSize):
87+
if isinstance(big, (raw.types.PhotoStrippedSize, raw.types.PhotoPathSize)):
8888
return None
8989

9090
if isinstance(big, raw.types.PhotoSizeProgressive):

0 commit comments

Comments
 (0)