delete_profile_photos()#

Client.delete_profile_photos()#

Delete your own profile photos.

Usable by Users Bots
Parameters:

photo_ids (str | List of str) – A single Photo id as string or multiple ids as list of strings for deleting more than one photos at once.

Returns:

bool – True on success.

Example

# Get the photos to be deleted
photos = [p async for p in app.get_chat_photos("me")]

# Delete one photo
await app.delete_profile_photos(photos[0].file_id)

# Delete the rest of the photos
await app.delete_profile_photos([p.file_id for p in photos[1:]])