Airgram

Guides
/
/
Methods

api.setPassportElementErrors()

Informs the user that some of the elements in their Telegram Passport contain errors; for bots only. The user will not be able to resend the elements, until the errors are fixed

Parameters SetPassportElementErrorsParams:

NameTypeDescription
userIdnumber User identifier
errors The errors
Returns ApiResponse interface:
interface ApiResponse {
  _: 'setPassportElementErrors' | 'error'
  airgram: Airgram
  request: {
    method: 'setPassportElementErrors'
    params: SetPassportElementErrorsParams
  }
  response:  | 
  setState: (nextState: Record<string, unknown>) => void
  getState: () => Record<string, unknown>
}