From be451a3bb2d055101c5440786ae1680fb30bf307 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Thu, 28 Jun 2018 18:49:09 +0200 Subject: [PATCH] Rename parse_photos to parse_profile_photos --- pyrogram/client/ext/utils.py | 2 +- pyrogram/client/methods/users/get_user_profile_photos.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pyrogram/client/ext/utils.py b/pyrogram/client/ext/utils.py index 2913c38b..3d2f88c1 100644 --- a/pyrogram/client/ext/utils.py +++ b/pyrogram/client/ext/utils.py @@ -757,7 +757,7 @@ def get_offset_date(dialogs): return 0 -def parse_photos(photos): +def parse_profile_photos(photos): if isinstance(photos, types.photos.Photos): total_count = len(photos.photos) else: diff --git a/pyrogram/client/methods/users/get_user_profile_photos.py b/pyrogram/client/methods/users/get_user_profile_photos.py index 42fb84bb..5613c21d 100644 --- a/pyrogram/client/methods/users/get_user_profile_photos.py +++ b/pyrogram/client/methods/users/get_user_profile_photos.py @@ -48,7 +48,7 @@ class GetUserProfilePhotos(BaseClient): Raises: :class:`Error ` """ - return utils.parse_photos( + return utils.parse_profile_photos( self.send( functions.photos.GetUserPhotos( user_id=self.resolve_peer(user_id),