Class: TD::Types::FormattedText
- Defined in:
- lib/tdlib/types/formatted_text.rb
Overview
A text with some entities.
Instance Attribute Summary collapse
-
#entities ⇒ Array<TD::Types::TextEntity>
Entities contained in the text.
-
#text ⇒ TD::Types::String
The text.
Method Summary
Methods inherited from Base
Instance Attribute Details
#entities ⇒ Array<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.
11 12 13 |
# File 'lib/tdlib/types/formatted_text.rb', line 11 def entities @entities end |
#text ⇒ TD::Types::String
The text.
11 12 13 |
# File 'lib/tdlib/types/formatted_text.rb', line 11 def text @text end |