AuthorizationStateExt extension

on

Properties

authorizationStateClosed AuthorizationStateClosed?
TDLib client is in its final state. All databases are closed and all resources are released. No other updates will be received after this. All queries will be responded to
read-only
authorizationStateClosing AuthorizationStateClosing?
TDLib is closing, all subsequent queries will be answered with the error 500. Note that closing TDLib can take a while. All resources will be freed only after authorizationStateClosed has been received
read-only
authorizationStateLoggingOut AuthorizationStateLoggingOut?
The user is currently logging out
read-only
authorizationStateReady AuthorizationStateReady?
The user has been successfully authorized. TDLib is now ready to answer general requests
read-only
authorizationStateWaitCode AuthorizationStateWaitCode?
TDLib needs the user's authentication code to authorize. Call checkAuthenticationCode to check the code
read-only
authorizationStateWaitEmailAddress AuthorizationStateWaitEmailAddress?
TDLib needs the user's email address to authorize. Call setAuthenticationEmailAddress to provide the email address, or directly call checkAuthenticationEmailCode with Apple ID/Google ID token if allowed
read-only
authorizationStateWaitEmailCode AuthorizationStateWaitEmailCode?
TDLib needs the user's authentication code sent to an email address to authorize. Call checkAuthenticationEmailCode to provide the code
read-only
authorizationStateWaitOtherDeviceConfirmation AuthorizationStateWaitOtherDeviceConfirmation?
The user needs to confirm authorization on another logged in device by scanning a QR code with the provided link
read-only
authorizationStateWaitPassword AuthorizationStateWaitPassword?
The user has been authorized, but needs to enter a 2-step verification password to start using the application.
read-only
authorizationStateWaitPhoneNumber AuthorizationStateWaitPhoneNumber?
TDLib needs the user's phone number to authorize. Call setAuthenticationPhoneNumber to provide the phone number, or use requestQrCodeAuthentication or checkAuthenticationBotToken for other authentication options
read-only
authorizationStateWaitRegistration AuthorizationStateWaitRegistration?
The user is unregistered and need to accept terms of service and enter their first name and last name to finish registration. Call registerUser to accept the terms of service and provide the data
read-only
authorizationStateWaitTdlibParameters AuthorizationStateWaitTdlibParameters?
Initialization parameters are needed. Call setTdlibParameters to provide them
read-only