2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-08-29 13:27:47 +00:00

Update example

This commit is contained in:
Dan 2022-09-15 12:15:13 +02:00
parent 7558e04cfc
commit 6dced525ab

View File

@ -43,7 +43,7 @@ class DeleteProfilePhotos:
.. code-block:: python .. code-block:: python
# Get the photos to be deleted # 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 # Delete one photo
await app.delete_profile_photos(photos[0].file_id) await app.delete_profile_photos(photos[0].file_id)