2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-08-28 21:07:59 +00:00

Fix get_profile_photos not working when passing "me"/"self" as argument

This commit is contained in:
Dan 2019-06-09 13:01:24 +02:00
parent 6e6dd54d40
commit af08606087

View File

@ -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(