mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-29 13:27:47 +00:00
Fix get_profile_photos not working when passing "me"/"self" as argument
This commit is contained in:
parent
6e6dd54d40
commit
af08606087
@ -54,7 +54,7 @@ class GetProfilePhotos(BaseClient):
|
|||||||
"""
|
"""
|
||||||
peer_id = self.resolve_peer(chat_id)
|
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(
|
return pyrogram.ProfilePhotos._parse(
|
||||||
self,
|
self,
|
||||||
self.send(
|
self.send(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user