photos.deletePhotos
Deletes profile photos. The method returns a list of successfully deleted photo IDs.
func (c *Client) PhotosDeletePhotos(ctx context.Context, id []InputPhotoClass) ([]int64, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.PhotosDeletePhotos(ctx, id)
if err != nil {
return err
}
_ = res // []int64
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
ID | []InputPhotoClass | yes | Input photos to delete |
Returns
[]int64
References
- Official documentation
- Generated Go reference
- TL definition:
photos.deletePhotos#87cf7f2f