diff --git a/pyrogram/methods/users/delete_profile_photos.py b/pyrogram/methods/users/delete_profile_photos.py index e7205661..2e761544 100644 --- a/pyrogram/methods/users/delete_profile_photos.py +++ b/pyrogram/methods/users/delete_profile_photos.py @@ -43,7 +43,7 @@ class DeleteProfilePhotos: .. code-block:: python # Get the photos to be deleted - photos = await app.get_profile_photos("me") + photos = list(await app.get_chat_photos("me")) # Delete one photo await app.delete_profile_photos(photos[0].file_id)