diff --git a/pyrogram/types/messages_and_media/photo.py b/pyrogram/types/messages_and_media/photo.py index 801d7118..27a6c409 100644 --- a/pyrogram/types/messages_and_media/photo.py +++ b/pyrogram/types/messages_and_media/photo.py @@ -84,7 +84,7 @@ class Photo(Object): if isinstance(photo, raw.types.Photo): big = photo.sizes[-1] - if isinstance(big, raw.types.PhotoStrippedSize): + if isinstance(big, (raw.types.PhotoStrippedSize, raw.types.PhotoPathSize)): return None if isinstance(big, raw.types.PhotoSizeProgressive):