Class: TD::Types::InternalLinkType::UserPhoneNumber

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

Overview

The link is a link to a user by its phone number. Call searchUserByPhoneNumber with the given phone number to process the link. If the user is found, then call createPrivateChat and open user’s profile information screen or the chat itself. If draft text isn’t empty, then put the draft text in the input field.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#draft_textTD::Types::String

Draft text for message to send in the chat.

Returns:

  • (TD::Types::String)

    the current value of draft_text



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

def draft_text
  @draft_text
end

#open_profileBoolean

True, if user’s profile information screen must be opened; otherwise, the chat itself must be opened.

Returns:

  • (Boolean)

    the current value of open_profile



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

def open_profile
  @open_profile
end

#phone_numberTD::Types::String

Phone number of the user.

Returns:

  • (TD::Types::String)

    the current value of phone_number



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

def phone_number
  @phone_number
end