mirror of
https://github.com/TeamPGM/pyrogram.git
synced 2024-11-16 12:51:18 +00:00
Fix delete_profile_photos example (#990)
This commit is contained in:
parent
b904a4f3e2
commit
eb4ff1427b
@ -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 New Issue
Block a user