Module tdlight.api

Class TdApi.ParseTextEntities

Enclosing class:
TdApi

public static final class TdApi.ParseTextEntities extends TdApi.Function<TdApi.FormattedText>
Parses Bold, Italic, Underline, Strikethrough, Spoiler, CustomEmoji, Code, Pre, PreCode, TextUrl and MentionName entities contained in the text. Can be called synchronously. Returns FormattedText
  • Field Details

  • Constructor Details

    • ParseTextEntities

      public ParseTextEntities()
      Parses Bold, Italic, Underline, Strikethrough, Spoiler, CustomEmoji, 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)
      Parses Bold, Italic, Underline, Strikethrough, Spoiler, CustomEmoji, Code, Pre, PreCode, TextUrl and MentionName entities contained in the text. Can be called synchronously. Returns FormattedText
      Parameters:
      text - String The text to parse.
      parseMode - TextParseMode Text parse mode.
    • ParseTextEntities

      public ParseTextEntities(DataInput input) throws IOException
      Parses Bold, Italic, Underline, Strikethrough, Spoiler, CustomEmoji, Code, Pre, PreCode, TextUrl and MentionName entities contained in the text. Can be called synchronously. Returns FormattedText
      Throws:
      IOException
  • Method Details