Class TdApi.SummarizeMessage

Enclosing class:
TdApi

public static class TdApi.SummarizeMessage extends TdApi.Function<TdApi.FormattedText>
Summarizes content of the message with non-empty summaryLanguageCode.

Returns FormattedText

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    long
    Identifier of the chat to which the message belongs.
    static final int
    Identifier uniquely determining type of the object.
    long
    Identifier of the message.
    Pass a language code to which the summary will be translated; may be empty if translation isn't needed.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor for a function, which summarizes content of the message with non-empty summaryLanguageCode.
    SummarizeMessage(long chatId, long messageId, String translateToLanguageCode)
    Creates a function, which summarizes content of the message with non-empty summaryLanguageCode.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns an identifier uniquely determining type of the object.

    Methods inherited from class org.drinkless.tdlib.TdApi.Function

    toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • chatId

      public long chatId
      Identifier of the chat to which the message belongs.
    • messageId

      public long messageId
      Identifier of the message.
    • translateToLanguageCode

      public String translateToLanguageCode
      Pass a language code to which the summary will be translated; may be empty if translation isn't needed. See translateText.toLanguageCode for the list of supported values.
    • CONSTRUCTOR

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

    • SummarizeMessage

      public SummarizeMessage()
      Default constructor for a function, which summarizes content of the message with non-empty summaryLanguageCode.

      Returns FormattedText

    • SummarizeMessage

      public SummarizeMessage(long chatId, long messageId, String translateToLanguageCode)
      Creates a function, which summarizes content of the message with non-empty summaryLanguageCode.

      Returns FormattedText

      Parameters:
      chatId - Identifier of the chat to which the message belongs.
      messageId - Identifier of the message.
      translateToLanguageCode - Pass a language code to which the summary will be translated; may be empty if translation isn't needed. See translateText.toLanguageCode for the list of supported values.
  • 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