Delete your own profile photos.Usable by Users Bots
str| List of
str) – A single
Photoid as string or multiple ids as list of strings for deleting more than one photos at once.
bool– True on success.
# 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.file_id) # Delete the rest of the photos await app.delete_profile_photos([p.file_id for p in photos[1:]])