1 parent b904a4f commit eb4ff14Copy full SHA for eb4ff14
1 file changed
pyrogram/methods/users/delete_profile_photos.py
@@ -43,7 +43,7 @@ async def delete_profile_photos(
43
.. code-block:: python
44
45
# Get the photos to be deleted
46
- photos = await app.get_profile_photos("me")
+ photos = list(await app.get_chat_photos("me"))
47
48
# Delete one photo
49
await app.delete_profile_photos(photos[0].file_id)
0 commit comments