photos.DeletePhotos

class pyrogram.raw.functions.photos.DeletePhotos

Deletes profile photos. The method returns a list of successfully deleted photo IDs.

Details:
  • Layer: 223

  • ID: 87CF7F2F

Parameters:

id (List of InputPhoto) – Input photos to delete

Returns:

List of int 64-bit

TL Schema

photos.deletePhotos#87cf7f2f
id:Vector<InputPhoto>

= Vector<long>

Parameter Tree

DeletePhotos
└── idVector < InputPhoto >
├── InputPhotoEmpty
└── InputPhoto
├── idlong
├── access_hashlong
└── file_referencebytes

Example

await app.invoke(
    DeletePhotos(
        id=[
                InputPhotoEmpty()
            ],
    )
)