From 9792ee902d3f7e03af3bd4825cd1b50173523b20 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Sat, 23 Dec 2017 13:34:06 +0100 Subject: [PATCH] Add get_user_profile_photos method --- pyrogram/client/client.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/pyrogram/client/client.py b/pyrogram/client/client.py index 9db251de..b562379f 100644 --- a/pyrogram/client/client.py +++ b/pyrogram/client/client.py @@ -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 + ) + )