Airgram

Guides
/
/
Methods

api.resendChangePhoneNumberCode()

Re-sends the authentication code sent to confirm a new phone number for the current user. Works only if the previously received authenticationCodeInfo next_code_type was not null and the server-specified timeout has passed

Returns ApiResponse interface:
interface ApiResponse {
  _: 'resendChangePhoneNumberCode' | 'error'
  airgram: Airgram
  request: {
    method: 'resendChangePhoneNumberCode'
  }
  response:  | 
  setState: (nextState: Record<string, unknown>) => void
  getState: () => Record<string, unknown>
}