Airgram

Guides
/
/
Methods

api.requestQrCodeAuthentication()

Requests QR code authentication by scanning a QR code on another logged in device. Works only when the current authorization state is authorizationStateWaitPhoneNumber, or if there is no pending authentication query and the current authorization state is authorizationStateWaitCode, authorizationStateWaitRegistration, or authorizationStateWaitPassword

Parameters RequestQrCodeAuthenticationParams:

NameTypeDescription
otherUserIdsnumber[] List of user identifiers of other users currently using the application
Returns ApiResponse interface:
interface ApiResponse {
  _: 'requestQrCodeAuthentication' | 'error'
  airgram: Airgram
  request: {
    method: 'requestQrCodeAuthentication'
    params: RequestQrCodeAuthenticationParams
  }
  response:  | 
  setState: (nextState: Record<string, unknown>) => void
  getState: () => Record<string, unknown>
}