Fix delete_profile_photos example (#990)

This commit is contained in:
மனோஜ்குமார் பழனிச்சாமி 2022-06-20 15:12:37 +05:30 committed by GitHub
parent b904a4f3e2
commit eb4ff1427b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)