|
TDLib
|
Inherits 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 draft_id, and be deleted whenever any incoming message from the bot in the message thread is received.
Public Member Functions | |
| void | store (TlStorerToString &s, const char *field_name) const final |
| updatePendingMessage () | |
| updatePendingMessage (int53 chat_id_, int32 forum_topic_id_, int64 draft_id_, object_ptr< MessageContent > &&content_) | |
| Public Member Functions inherited from TlObject | |
| TlObject & | operator= (const TlObject &)=delete |
| TlObject & | operator= (TlObject &&)=default |
| virtual void | store (TlStorerCalcLength &s) const |
| virtual void | store (TlStorerUnsafe &s) const |
| TlObject ()=default | |
| TlObject (const TlObject &)=delete | |
| TlObject (TlObject &&)=default | |
| virtual | ~TlObject ()=default |
Public Attributes | |
| int53 | chat_id_ |
| Chat identifier. | |
| object_ptr< MessageContent > | content_ |
| Content of the message; always of the type messageText or messageRichMessage. | |
| int64 | draft_id_ |
| Unique identifier of the message draft within the message thread. | |
| int32 | forum_topic_id_ |
| The forum topic identifier in which the message will be sent; 0 if none. | |
Static Public Attributes | |
| static const std::int32_t | ID = 1483889808 |
| Identifier uniquely determining a type of the object. | |
| 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 draft_id, and be deleted whenever any incoming message from the bot in the message thread is received.
| updatePendingMessage | ( | int53 | chat_id_, |
| int32 | forum_topic_id_, | ||
| int64 | draft_id_, | ||
| object_ptr< 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 draft_id, and be deleted whenever any incoming message from the bot in the message thread is received.
| [in] | chat_id_ | Chat identifier. |
| [in] | forum_topic_id_ | The forum topic identifier in which the message will be sent; 0 if none. |
| [in] | draft_id_ | Unique identifier of the message draft within the message thread. |
| [in] | content_ | Content of the message; always of the type messageText or messageRichMessage. |
|
finalvirtual |