Skip to content

PhoneNumberAuthenticationSettings

Type · TDLib 1.8.67 · d1085f9c

Contains settings for the authentication of the user's phone number

PhoneNumberAuthenticationSettings(
  allow_flash_call: Bool,
  allow_missed_call: Bool,
  is_current_phone_number: Bool,
  has_unknown_phone_number: Bool,
  allow_sms_retriever_api: Bool,
  firebase_authentication_settings: FirebaseAuthenticationSettings,
  authentication_tokens: list of string
) → PhoneNumberAuthenticationSettings

allow_flash_call

Bool

Pass true if the authentication code may be sent via a flash call to the specified phone number

allow_missed_call

Bool

Pass true if the authentication code may be sent via a missed call to the specified phone number

is_current_phone_number

Bool

Pass true if the authenticated phone number is used on the current device

has_unknown_phone_number

Bool

Pass true if there is a SIM card in the current device, but it is not possible to check whether phone number matches

allow_sms_retriever_api

Bool

For official applications only. True, if the application can use Android SMS Retriever API (requires Google Play Services >= 10.2) to automatically receive the authentication code from the SMS. See https://developers.google.com/identity/sms-retriever/ for more details

firebase_authentication_settings

FirebaseAuthenticationSettings

For official Android and iOS applications only; pass null otherwise. Settings for Firebase Authentication

authentication_tokens

list of string

List of up to 20 authentication tokens, recently received in updateOption("authentication_token") in previously logged out sessions; for setAuthenticationPhoneNumber only