Class: TD::Types::InternalLinkType::UserPhoneNumber
- Inherits:
-
TD::Types::InternalLinkType
- Object
- Dry::Struct
- Base
- TD::Types::InternalLinkType
- TD::Types::InternalLinkType::UserPhoneNumber
- 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
-
#draft_text ⇒ TD::Types::String
Draft text for message to send in the chat.
-
#open_profile ⇒ Boolean
True, if user’s profile information screen must be opened; otherwise, the chat itself must be opened.
-
#phone_number ⇒ TD::Types::String
Phone number of the user.
Method Summary
Methods inherited from Base
Instance Attribute Details
#draft_text ⇒ TD::Types::String
Draft text for message to send in the chat.
11 12 13 |
# File 'lib/tdlib/types/internal_link_type/user_phone_number.rb', line 11 def draft_text @draft_text end |
#open_profile ⇒ Boolean
True, if user’s profile information screen must be opened; otherwise, the chat itself must be opened.
11 12 13 |
# File 'lib/tdlib/types/internal_link_type/user_phone_number.rb', line 11 def open_profile @open_profile end |
#phone_number ⇒ TD::Types::String
Phone number of the user.
11 12 13 |
# File 'lib/tdlib/types/internal_link_type/user_phone_number.rb', line 11 def phone_number @phone_number end |