We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7558e04 commit 6dced52Copy full SHA for 6dced52
pyrogram/methods/users/delete_profile_photos.py
@@ -43,7 +43,7 @@ async def delete_profile_photos(
43
.. code-block:: python
44
45
# Get the photos to be deleted
46
- photos = list(await app.get_chat_photos("me"))
+ photos = [p async for p in app.get_chat_photos("me")]
47
48
# Delete one photo
49
await app.delete_profile_photos(photos[0].file_id)
0 commit comments