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. Bold, Italic, Underline and Strikethrough entities can contain and to be contained in all other entities. All other entities can’t contain each other.
10 11 12 |
# File 'lib/tdlib/types/formatted_text.rb', line 10 def entities @entities end |
#text ⇒ TD::Types::String
The text.
10 11 12 |
# File 'lib/tdlib/types/formatted_text.rb', line 10 def text @text end |