2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-08-28 21:07:59 +00:00

Rename parse_photos to parse_profile_photos

This commit is contained in:
Dan 2018-06-28 18:49:09 +02:00
parent 0935c4837f
commit be451a3bb2
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -48,7 +48,7 @@ class GetUserProfilePhotos(BaseClient):
Raises:
:class:`Error <pyrogram.Error>`
"""
return utils.parse_photos(
return utils.parse_profile_photos(
self.send(
functions.photos.GetUserPhotos(
user_id=self.resolve_peer(user_id),