module TD::Types # A text with some entities. # # @attr text [String] The text. # @attr entities [Array] 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. class FormattedText < Base attribute :text, TD::Types::String attribute :entities, TD::Types::Array.of(TD::Types::TextEntity) end end