Class TdApi.UpdatePendingTextMessage

java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.Update
org.drinkless.tdlib.TdApi.UpdatePendingTextMessage
Enclosing class:
TdApi

public static class TdApi.UpdatePendingTextMessage extends TdApi.Update
A new pending text 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 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.
    • text

      public TdApi.FormattedText text
      Text of the pending message.
    • CONSTRUCTOR

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

    • UpdatePendingTextMessage

      public UpdatePendingTextMessage()
      A new pending text 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.
    • UpdatePendingTextMessage

      public UpdatePendingTextMessage(long chatId, int forumTopicId, long draftId, TdApi.FormattedText text)
      A new pending text 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.
      text - Text of the pending message.
  • 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