mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-06 15:14:52 +00:00
Add get_user_profile_photos method
This commit is contained in:
parent
54fa3af4d5
commit
9792ee902d
1 changed files with 13 additions and 0 deletions
|
|
@ -920,3 +920,16 @@ class Client:
|
|||
return True
|
||||
finally:
|
||||
session.stop()
|
||||
|
||||
def get_user_profile_photos(self,
|
||||
user_id: int or str,
|
||||
offset: int = 0,
|
||||
limit: int = 100):
|
||||
return self.send(
|
||||
functions.photos.GetUserPhotos(
|
||||
user_id=self.resolve_peer(user_id),
|
||||
offset=offset,
|
||||
max_id=0,
|
||||
limit=limit
|
||||
)
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue