Class: TD::Types::InternalLinkType::MessageDraft

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

Overview

The link contains a message draft text. A share screen needs to be shown to the user, then the chosen chat must be opened and the text is added to the

input field.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

True, if the first line of the text contains a link. If true, the input field needs to be focused and the text after the link must be selected.



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

def contains_link
  @contains_link
end

#textTD::Types::FormattedText

Message draft text.



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

def text
  @text
end