Airgram

Guides
/
/
Methods

api.deleteProfilePhoto()

Deletes a profile photo

Parameters DeleteProfilePhotoParams:

NameTypeDescription
profilePhotoIdstring Identifier of the profile photo to delete
Returns ApiResponse interface:
interface ApiResponse {
  _: 'deleteProfilePhoto' | 'error'
  airgram: Airgram
  request: {
    method: 'deleteProfilePhoto'
    params: DeleteProfilePhotoParams
  }
  response:  | 
  setState: (nextState: Record<string, unknown>) => void
  getState: () => Record<string, unknown>
}