mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2025-12-29 12:04:51 +00:00
Fix delete_profile_photos example (#990)
This commit is contained in:
parent
b904a4f3e2
commit
eb4ff1427b
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 = await app.get_profile_photos("me")
|
||||
photos = list(await app.get_chat_photos("me"))
|
||||
|
||||
# Delete one photo
|
||||
await app.delete_profile_photos(photos[0].file_id)
|
||||
|
|
|
|||
Loading…
Reference in a new issue