TDLib
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
updatePendingMessage Class Referencefinal

Inherits Update.

Description

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.
 

Constructor & Destructor Documentation

◆ updatePendingMessage() [1/2]

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() [2/2]

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.

Parameters
[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.

Member Function Documentation

◆ store()

void store ( TlStorerToString &  s,
const char *  field_name 
) const
finalvirtual

Helper function for to_string method. Appends string representation of the object to the storer.

Parameters
[in]sStorer to which object string representation will be appended.
[in]field_nameObject field_name if applicable.

Implements TlObject.


The documentation for this class was generated from the following file: