Class: TD::Types::InputMessageContent::Text

Inherits:
TD::Types::InputMessageContent show all
Defined in:
lib/tdlib/types/input_message_content/text.rb

Overview

A text message.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#clear_draftBoolean

True, if a chat message draft must be deleted.

Returns:

  • (Boolean)

    the current value of clear_draft



10
11
12
# File 'lib/tdlib/types/input_message_content/text.rb', line 10

def clear_draft
  @clear_draft
end

Options to be used for generation of a link preview; may be null if none; pass null to use default link preview options.

Returns:



10
11
12
# File 'lib/tdlib/types/input_message_content/text.rb', line 10

def link_preview_options
  @link_preview_options
end

#textTD::Types::FormattedText

Formatted text to be sent; 0-getOption(“message_text_length_max”) characters. Only Bold, Italic, Underline, Strikethrough, Spoiler, CustomEmoji, BlockQuote, ExpandableBlockQuote, Code, Pre, PreCode, TextUrl and MentionName entities are allowed to be specified manually.

Returns:



10
11
12
# File 'lib/tdlib/types/input_message_content/text.rb', line 10

def text
  @text
end