From a30e49fe795224b8ed23a833a12d14019bea7941 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Tue, 8 Dec 2020 22:25:42 +0100 Subject: [PATCH] Ignore PhotoPathSize for now --- pyrogram/types/messages_and_media/photo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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):