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. BlockQuote entities can’t contain other BlockQuote entities. Bold, Italic, Underline, Strikethrough, and Spoiler entities can contain and can be part of any other entities. All other entities can’t contain each other.

Returns:



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

def entities
  @entities
end

#textTD::Types::String

The text.

Returns:

  • (TD::Types::String)

    the current value of text



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

def text
  @text
end