Class: TD::Types::PhoneNumberAuthenticationSettings

Inherits:
Base
  • Object
show all
Defined in:
lib/tdlib/types/phone_number_authentication_settings.rb

Overview

Contains settings for the authentication of the user’s phone number.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#allow_flash_callBoolean

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

Returns:

  • (Boolean)

    the current value of allow_flash_call



20
21
22
# File 'lib/tdlib/types/phone_number_authentication_settings.rb', line 20

def allow_flash_call
  @allow_flash_call
end

#allow_missed_callBoolean

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

Returns:

  • (Boolean)

    the current value of allow_missed_call



20
21
22
# File 'lib/tdlib/types/phone_number_authentication_settings.rb', line 20

def allow_missed_call
  @allow_missed_call
end

#allow_sms_retriever_apiBoolean

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 developers.google.com/identity/sms-retriever/ for more details.

Returns:

  • (Boolean)

    the current value of allow_sms_retriever_api



20
21
22
# File 'lib/tdlib/types/phone_number_authentication_settings.rb', line 20

def allow_sms_retriever_api
  @allow_sms_retriever_api
end

#authentication_tokensArray<TD::Types::String>

List of up to 20 authentication tokens, recently received in updateOption(“authentication_token”) in previously logged out sessions.

Returns:

  • (Array<TD::Types::String>)

    the current value of authentication_tokens



20
21
22
# File 'lib/tdlib/types/phone_number_authentication_settings.rb', line 20

def authentication_tokens
  @authentication_tokens
end

#firebase_authentication_settingsTD::Types::FirebaseAuthenticationSettings

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

Returns:



20
21
22
# File 'lib/tdlib/types/phone_number_authentication_settings.rb', line 20

def firebase_authentication_settings
  @firebase_authentication_settings
end

#has_unknown_phone_numberBoolean

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

Returns:

  • (Boolean)

    the current value of has_unknown_phone_number



20
21
22
# File 'lib/tdlib/types/phone_number_authentication_settings.rb', line 20

def has_unknown_phone_number
  @has_unknown_phone_number
end

#is_current_phone_numberBoolean

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

Returns:

  • (Boolean)

    the current value of is_current_phone_number



20
21
22
# File 'lib/tdlib/types/phone_number_authentication_settings.rb', line 20

def is_current_phone_number
  @is_current_phone_number
end