mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2025-12-29 20:14:51 +00:00
Fix get_profile_photos not working when passing "me"/"self" as argument
This commit is contained in:
parent
6e6dd54d40
commit
af08606087
1 changed files with 1 additions and 1 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in a new issue