Class TdApi.FormattedText

  • Enclosing class:
    TdApi

    public static class TdApi.FormattedText
    extends TdApi.Object
    A text with some entities.
    • Field Detail

      • text

        public String text
        The text.
      • entities

        public TdApi.TextEntity[] entities
        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.
      • CONSTRUCTOR

        public static final int CONSTRUCTOR
        Identifier uniquely determining type of the object.
        See Also:
        Constant Field Values
    • Constructor Detail

      • FormattedText

        public FormattedText()
        A text with some entities.
      • FormattedText

        public FormattedText​(String text,
                             TdApi.TextEntity[] entities)
        A text with some entities.
        Parameters:
        text - The text.
        entities - 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.