Package org.drinkless.tdlib
Class TdApi.UpdatePendingTextMessage
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.Update
org.drinkless.tdlib.TdApi.UpdatePendingTextMessage
- Enclosing class:
- TdApi
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 Summary
FieldsModifier and TypeFieldDescriptionlongChat identifier.static final intIdentifier uniquely determining type of the object.longUnique identifier of the message draft within the message thread.intThe forum topic identifier in which the message will be sent; 0 if none.Text of the pending message. -
Constructor Summary
ConstructorsConstructorDescriptionA new pending text message was received in a chat with a bot.UpdatePendingTextMessage(long chatId, int forumTopicId, long draftId, TdApi.FormattedText text) A new pending text message was received in a chat with a bot. -
Method Summary
Modifier and TypeMethodDescriptionintReturns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.TdApi.Object
toString
-
Field Details
-
chatId
public long chatIdChat identifier. -
forumTopicId
public int forumTopicIdThe forum topic identifier in which the message will be sent; 0 if none. -
draftId
public long draftIdUnique identifier of the message draft within the message thread. -
text
Text of the pending message. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier 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.ObjectReturns an identifier uniquely determining type of the object.- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-