Class: TD::Types::MessageContent::Text

Inherits:
TD::Types::MessageContent show all
Defined in:
lib/tdlib/types/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

A link preview attached to the message; may be null.

Returns:



8
9
10
# File 'lib/tdlib/types/message_content/text.rb', line 8

def link_preview
  @link_preview
end

Options which were used for generation of the link preview; may be null if default options were used.

Returns:



8
9
10
# File 'lib/tdlib/types/message_content/text.rb', line 8

def link_preview_options
  @link_preview_options
end

#textTD::Types::FormattedText

Text of the message.

Returns:



8
9
10
# File 'lib/tdlib/types/message_content/text.rb', line 8

def text
  @text
end