Class TdApi.UpdatePendingMessage

Enclosing class:
TdApi

public static class TdApi.UpdatePendingMessage extends TdApi.Update
A new pending text or rich message was received in a chat with a bot. The message must be shown in the chat for at most getOption("pending_text_message_period") seconds, replace any other pending message with the same draftId, and be deleted whenever any incoming message from the bot in the message thread is received.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    long
    Chat identifier.
    static final int
    Identifier uniquely determining type of the object.
    Content of the message; always of the type messageText or messageRichMessage.
    long
    Unique identifier of the message draft within the message thread.
    int
    The forum topic identifier in which the message will be sent; 0 if none.
  • Constructor Summary

    Constructors
    Constructor
    Description
    A new pending text or rich message was received in a chat with a bot.
    UpdatePendingMessage(long chatId, int forumTopicId, long draftId, TdApi.MessageContent content)
    A new pending text or rich message was received in a chat with a bot.
  • 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.Object

    toString

    Methods inherited from class java.lang.Object

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

    • chatId

      public long chatId
      Chat identifier.
    • forumTopicId

      public int forumTopicId
      The forum topic identifier in which the message will be sent; 0 if none.
    • draftId

      public long draftId
      Unique identifier of the message draft within the message thread.
    • content

      public TdApi.MessageContent content
      Content of the message; always of the type messageText or messageRichMessage.
    • CONSTRUCTOR

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

    • UpdatePendingMessage

      public UpdatePendingMessage()
      A new pending text or rich message was received in a chat with a bot. The message must be shown in the chat for at most getOption("pending_text_message_period") seconds, replace any other pending message with the same draftId, and be deleted whenever any incoming message from the bot in the message thread is received.
    • UpdatePendingMessage

      public UpdatePendingMessage(long chatId, int forumTopicId, long draftId, TdApi.MessageContent content)
      A new pending text or rich message was received in a chat with a bot. The message must be shown in the chat for at most getOption("pending_text_message_period") seconds, replace any other pending message with the same draftId, and be deleted whenever any incoming message from the bot in the message thread is received.
      Parameters:
      chatId - Chat identifier.
      forumTopicId - The forum topic identifier in which the message will be sent; 0 if none.
      draftId - Unique identifier of the message draft within the message thread.
      content - Content of the message; always of the type messageText or messageRichMessage.
  • 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