From fda456cd1ee31c84a66e0bfbd06f29809571f75e Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Wed, 29 May 2019 09:49:13 +0200 Subject: [PATCH] Rename UserProfilePhotos to just Photos for brevity and elegance --- .../{user_profile_photos.py => photos.py} | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) rename pyrogram/client/types/messages_and_media/{user_profile_photos.py => photos.py} (92%) diff --git a/pyrogram/client/types/messages_and_media/user_profile_photos.py b/pyrogram/client/types/messages_and_media/photos.py similarity index 92% rename from pyrogram/client/types/messages_and_media/user_profile_photos.py rename to pyrogram/client/types/messages_and_media/photos.py index 628831d5..1d5b193e 100644 --- a/pyrogram/client/types/messages_and_media/user_profile_photos.py +++ b/pyrogram/client/types/messages_and_media/photos.py @@ -23,7 +23,7 @@ from .photo import Photo from ..pyrogram_type import PyrogramType -class UserProfilePhotos(PyrogramType): +class Photos(PyrogramType): """Contains a user's profile pictures. Parameters: @@ -49,8 +49,8 @@ class UserProfilePhotos(PyrogramType): self.photos = photos @staticmethod - def _parse(client, photos) -> "UserProfilePhotos": - return UserProfilePhotos( + def _parse(client, photos) -> "Photos": + return Photos( total_count=getattr(photos, "count", len(photos.photos)), photos=[Photo._parse(client, photo) for photo in photos.photos], client=client