Class TdApi.ParseTextEntities

  • Enclosing class:
    TdApi

    public static class TdApi.ParseTextEntities
    extends TdApi.Function
    Parses Bold, Italic, Underline, Strikethrough, Code, Pre, PreCode, TextUrl and MentionName entities contained in the text. Can be called synchronously.

    Returns FormattedText

    • Field Detail

      • text

        public String text
        The text to parse.
      • CONSTRUCTOR

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

      • ParseTextEntities

        public ParseTextEntities()
        Default constructor for a function, which parses Bold, Italic, Underline, Strikethrough, Code, Pre, PreCode, TextUrl and MentionName entities contained in the text. Can be called synchronously.

        Returns FormattedText

      • ParseTextEntities

        public ParseTextEntities​(String text,
                                 TdApi.TextParseMode parseMode)
        Creates a function, which parses Bold, Italic, Underline, Strikethrough, Code, Pre, PreCode, TextUrl and MentionName entities contained in the text. Can be called synchronously.

        Returns FormattedText

        Parameters:
        text - The text to parse.
        parseMode - Text parse mode.