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, BlockQuote, Code, Pre, PreCode, TextUrl and MentionName entities from a marked-up text. Can be called synchronously.

Returns FormattedText

  • Field Details

    • text

      public String text
      The text to parse.
    • parseMode

      public TdApi.TextParseMode parseMode
      Text parse mode.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      Identifier uniquely determining type of the object.
      See Also:
  • Constructor Details

    • ParseTextEntities

      public ParseTextEntities()
      Parses Bold, Italic, Underline, Strikethrough, Spoiler, CustomEmoji, BlockQuote, Code, Pre, PreCode, TextUrl and MentionName entities from a marked-up text. Can be called synchronously.

      Returns FormattedText

    • ParseTextEntities

      public ParseTextEntities(String text, TdApi.TextParseMode parseMode)
      Parses Bold, Italic, Underline, Strikethrough, Spoiler, CustomEmoji, BlockQuote, Code, Pre, PreCode, TextUrl and MentionName entities from a marked-up text. Can be called synchronously.

      Returns FormattedText

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

      Returns FormattedText

    • ParseTextEntities

      public ParseTextEntities(DataInput input) throws IOException
      Parses Bold, Italic, Underline, Strikethrough, Spoiler, CustomEmoji, BlockQuote, Code, Pre, PreCode, TextUrl and MentionName entities from a marked-up text. Can be called synchronously.

      Returns FormattedText

      Parameters:
      input - Serialized input
      Throws:
      IOException - the deserialization failed
  • Method Details

    • getConstructor

      public int getConstructor()
      Description copied from class: TdApi.Object
      Returns an identifier uniquely determining type of the object.
      Specified by:
      getConstructor in class TdApi.Object
      Returns:
      this.CONSTRUCTOR
    • serialize

      public void serialize(DataOutput output) throws IOException
      Serialize the TDLib class
      Specified by:
      serialize in class TdApi.Object
      Parameters:
      output - output data stream
      Throws:
      IOException - the serialization failed
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object