Airgram

Guides
/
/
Methods

api.getRecoveryEmailAddress()

Returns a 2-step verification recovery email address that was previously set up. This method can be used to verify a password provided by the user

Parameters GetRecoveryEmailAddressParams:

NameTypeDescription
passwordstring The password for the current user
Returns ApiResponse interface:
interface ApiResponse {
  _: 'getRecoveryEmailAddress' | 'error'
  airgram: Airgram
  request: {
    method: 'getRecoveryEmailAddress'
    params: GetRecoveryEmailAddressParams
  }
  response:  | 
  setState: (nextState: Record<string, unknown>) => void
  getState: () => Record<string, unknown>
}