mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2025-12-29 20:14:51 +00:00
Update example
This commit is contained in:
parent
7558e04cfc
commit
6dced525ab
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue