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



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

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



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

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, Code, Pre, PreCode and TextUrl entities are allowed to be specified manually.

Returns:



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

def text
  @text
end