Skip to content
This repository was archived by the owner on Dec 23, 2024. It is now read-only.

Commit 6dced52

Browse files
committed
Update example
1 parent 7558e04 commit 6dced52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyrogram/methods/users/delete_profile_photos.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ async def delete_profile_photos(
4343
.. code-block:: python
4444
4545
# Get the photos to be deleted
46-
photos = list(await app.get_chat_photos("me"))
46+
photos = [p async for p in app.get_chat_photos("me")]
4747
4848
# Delete one photo
4949
await app.delete_profile_photos(photos[0].file_id)

0 commit comments

Comments
 (0)