Class: TD::Types::InternalLinkType::PhoneNumberConfirmation

Inherits:
TD::Types::InternalLinkType show all
Defined in:
lib/tdlib/types/internal_link_type/phone_number_confirmation.rb

Overview

The link can be used to confirm ownership of a phone number to prevent account deletion. Call sendPhoneNumberCode with the given phone number and with phoneNumberCodeTypeConfirmOwnership with the given

hash to process the link.

If succeeded, call checkPhoneNumberCode to check entered by the user code, or resendPhoneNumberCode to resend it.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#hashTD::Types::String

Hash value from the link.

Returns:

  • (TD::Types::String)

    the current value of hash



9
10
11
# File 'lib/tdlib/types/internal_link_type/phone_number_confirmation.rb', line 9

def hash
  @hash
end

#phone_numberTD::Types::String

Phone number value from the link.

Returns:

  • (TD::Types::String)

    the current value of phone_number



9
10
11
# File 'lib/tdlib/types/internal_link_type/phone_number_confirmation.rb', line 9

def phone_number
  @phone_number
end