From 6dced525ab67d9bfa9a8d26f02f0a87327eed8d7 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Thu, 15 Sep 2022 12:15:13 +0200 Subject: [PATCH] Update example --- pyrogram/methods/users/delete_profile_photos.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyrogram/methods/users/delete_profile_photos.py b/pyrogram/methods/users/delete_profile_photos.py index 2e761544..4ee8b7b5 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 = list(await app.get_chat_photos("me")) + photos = [p async for p in app.get_chat_photos("me")] # Delete one photo await app.delete_profile_photos(photos[0].file_id)