Class: TD::Types::PhoneNumberAuthenticationSettings
- 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
-
#allow_flash_call ⇒ Boolean
Pass true if the authentication code may be sent via a flash call to the specified phone number.
-
#allow_missed_call ⇒ Boolean
Pass true if the authentication code may be sent via a missed call to the specified phone number.
-
#allow_sms_retriever_api ⇒ Boolean
For official applications only.
-
#authentication_tokens ⇒ Array<TD::Types::String>
List of up to 20 authentication tokens, recently received in updateOption(“authentication_token”) in previously logged out sessions.
-
#firebase_authentication_settings ⇒ TD::Types::FirebaseAuthenticationSettings
For official Android and iOS applications only; pass null otherwise.
-
#has_unknown_phone_number ⇒ Boolean
Pass true if there is a SIM card in the current device, but it is not possible to check whether phone number matches.
-
#is_current_phone_number ⇒ Boolean
Pass true if the authenticated phone number is used on the current device.
Method Summary
Methods inherited from Base
Instance Attribute Details
#allow_flash_call ⇒ Boolean
Pass true if the authentication code may be sent via a flash call to the specified phone number.
20 21 22 |
# File 'lib/tdlib/types/phone_number_authentication_settings.rb', line 20 def allow_flash_call @allow_flash_call end |
#allow_missed_call ⇒ Boolean
Pass true if the authentication code may be sent via a missed call to the specified phone number.
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_api ⇒ Boolean
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.
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_tokens ⇒ Array<TD::Types::String>
List of up to 20 authentication tokens, recently received in updateOption(“authentication_token”) in previously logged out sessions.
20 21 22 |
# File 'lib/tdlib/types/phone_number_authentication_settings.rb', line 20 def authentication_tokens @authentication_tokens end |
#firebase_authentication_settings ⇒ TD::Types::FirebaseAuthenticationSettings
For official Android and iOS applications only; pass null otherwise. Settings for Firebase Authentication.
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_number ⇒ Boolean
Pass true if there is a SIM card in the current device, but it is not possible to check whether phone number matches.
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_number ⇒ Boolean
Pass true if the authenticated phone number is used on the current device.
20 21 22 |
# File 'lib/tdlib/types/phone_number_authentication_settings.rb', line 20 def is_current_phone_number @is_current_phone_number end |