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 should 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

#disable_web_page_previewBoolean

True, if rich web page previews for URLs in the message text should be disabled.

Returns:

  • (Boolean)

    the current value of disable_web_page_preview



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

def disable_web_page_preview
  @disable_web_page_preview
end

#textTD::Types::FormattedText

Formatted text to be sent; 1-GetOption(“message_text_length_max”) characters. Only Bold, Italic, Underline, Strikethrough, 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