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 flash call to the specified phone number.

Returns:

  • (Boolean)

    the current value of allow_flash_call



11
12
13
# File 'lib/tdlib/types/phone_number_authentication_settings.rb', line 11

def allow_flash_call
  @allow_flash_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



11
12
13
# File 'lib/tdlib/types/phone_number_authentication_settings.rb', line 11

def allow_sms_retriever_api
  @allow_sms_retriever_api
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



11
12
13
# File 'lib/tdlib/types/phone_number_authentication_settings.rb', line 11

def is_current_phone_number
  @is_current_phone_number
end