Add get_user_profile_photos method

This commit is contained in:
Dan 2017-12-23 13:34:06 +01:00
parent 54fa3af4d5
commit 9792ee902d

View File

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