Class: TD::Types::AuthenticationCodeType::MissedCall

Inherits:
TD::Types::AuthenticationCodeType show all
Defined in:
lib/tdlib/types/authentication_code_type/missed_call.rb

Overview

An authentication code is delivered by an immediately canceled call to the specified phone number. The last digits of the phone number that calls are the code that must be entered manually by the user.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#lengthInteger

Number of digits in the code, excluding the prefix.

Returns:

  • (Integer)

    the current value of length



7
8
9
# File 'lib/tdlib/types/authentication_code_type/missed_call.rb', line 7

def length
  @length
end

#phone_number_prefixTD::Types::String

Prefix of the phone number from which the call will be made.

Returns:

  • (TD::Types::String)

    the current value of phone_number_prefix



7
8
9
# File 'lib/tdlib/types/authentication_code_type/missed_call.rb', line 7

def phone_number_prefix
  @phone_number_prefix
end