Class: TD::Types::InternalLinkType::MessageDraft
- Inherits:
-
TD::Types::InternalLinkType
- Object
- Dry::Struct
- Base
- TD::Types::InternalLinkType
- TD::Types::InternalLinkType::MessageDraft
- 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
-
#contains_link ⇒ Boolean
True, if the first line of the text contains a link.
-
#text ⇒ TD::Types::FormattedText
Message draft text.
Method Summary
Methods inherited from Base
Instance Attribute Details
#contains_link ⇒ Boolean
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 |
#text ⇒ TD::Types::FormattedText
Message draft text.
9 10 11 |
# File 'lib/tdlib/types/internal_link_type/message_draft.rb', line 9 def text @text end |