List of all members | Public Fields | Public Instance Methods | Static Public Attributes
updatePendingTextMessage Class Referencefinal

Inherits Update.

Description

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 draft_id, and be deleted whenever any incoming message from the bot in the message thread is received.

Public Fields

int53 chat_id_
 Chat identifier.
 
int32 forum_topic_id_
 The forum topic identifier in which the message will be sent; 0 if none.
 
int64 draft_id_
 Unique identifier of the message draft within the message thread.
 
object_ptr< formattedTexttext_
 Text of the pending message.
 

Public Instance Methods

 updatePendingTextMessage ()
 
 updatePendingTextMessage (int53 chat_id_, int32 forum_topic_id_, int64 draft_id_, object_ptr< formattedText > &&text_)
 
void store (TlStorerToString &s, const char *field_name) const final
 
- Public Instance Methods inherited from TlObject
virtual void store (TlStorerUnsafe &s) const
 
virtual void store (TlStorerCalcLength &s) const
 
 TlObject ()=default
 
 TlObject (const TlObject &)=delete
 
TlObjectoperator= (const TlObject &)=delete
 
 TlObject (TlObject &&)=default
 
TlObjectoperator= (TlObject &&)=default
 
virtual ~TlObject ()=default
 

Static Public Attributes

static const std::int32_t ID = 1076298155
 Identifier uniquely determining a type of the object.
 

Constructor & Destructor Documentation

◆ updatePendingTextMessage() [1/2]

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 draft_id, and be deleted whenever any incoming message from the bot in the message thread is received.

◆ updatePendingTextMessage() [2/2]

updatePendingTextMessage ( int53  chat_id_,
int32  forum_topic_id_,
int64  draft_id_,
object_ptr< 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 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]text_Text of the pending message.

Method 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: