mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-29 13:27:47 +00:00
Update example
This commit is contained in:
parent
7558e04cfc
commit
6dced525ab
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user