From af08606087548943bd1bf891a35d1d11a494ba2d Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Sun, 9 Jun 2019 13:01:24 +0200 Subject: [PATCH] Fix get_profile_photos not working when passing "me"/"self" as argument --- pyrogram/client/methods/users/get_profile_photos.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyrogram/client/methods/users/get_profile_photos.py b/pyrogram/client/methods/users/get_profile_photos.py index e4e202e0..2b1d0c54 100644 --- a/pyrogram/client/methods/users/get_profile_photos.py +++ b/pyrogram/client/methods/users/get_profile_photos.py @@ -54,7 +54,7 @@ class GetProfilePhotos(BaseClient): """ peer_id = self.resolve_peer(chat_id) - if isinstance(peer_id, types.InputPeerUser): + if isinstance(peer_id, (types.InputPeerUser, types.InputPeerSelf)): return pyrogram.ProfilePhotos._parse( self, self.send(