Skip to content
This repository was archived by the owner on Dec 23, 2024. It is now read-only.

Commit eb4ff14

Browse files
authored
Fix delete_profile_photos example (#990)
1 parent b904a4f commit eb4ff14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyrogram/methods/users/delete_profile_photos.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ async def delete_profile_photos(
4343
.. code-block:: python
4444
4545
# Get the photos to be deleted
46-
photos = await app.get_profile_photos("me")
46+
photos = list(await app.get_chat_photos("me"))
4747
4848
# Delete one photo
4949
await app.delete_profile_photos(photos[0].file_id)

0 commit comments

Comments
 (0)