Class: TD::Types::FormattedText

Inherits:
Base
  • Object
show all
Defined in:
lib/tdlib/types/formatted_text.rb

Overview

A text with some entities.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#entitiesArray<TD::Types::TextEntity>

Entities contained in the text. Entities can be nested, but must not mutually intersect with each other. Pre, Code and PreCode entities can’t contain other entities. Bold, Italic, Underline and Strikethrough entities can contain and to be contained in all other entities. All other entities can’t contain each other.

Returns:



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

def entities
  @entities
end

#textTD::Types::String

The text.

Returns:

  • (TD::Types::String)

    the current value of text



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

def text
  @text
end