TDLib
Loading...
Searching...
No Matches
messageReplyToMessage Class Referencefinal

Inherits MessageReplyTo.

Description

Describes a message replied by a given message.

Public Member Functions

 messageReplyToMessage ()
 messageReplyToMessage (int53 chat_id_, int53 message_id_, object_ptr< textQuote > &&quote_, int32 checklist_task_id_, string const &poll_option_id_, object_ptr< MessageOrigin > &&origin_, int32 origin_send_date_, object_ptr< MessageContent > &&content_)
void store (TlStorerToString &s, const char *field_name) const final
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_
 The identifier of the chat to which the message belongs; may be 0 if the replied message is in unknown chat.
int32 checklist_task_id_
 Identifier of the checklist task in the original message that was replied; 0 if none.
object_ptr< MessageContent > content_
 Media content of the message if the message was from another chat or topic; may be null for messages from the same chat and messages without media. Can be only one of the following types: messageAnimation, messageAudio, messageChecklist, messageContact, messageDice, messageDocument, messageGame, messageGiveaway, messageGiveawayWinners, messageInvoice, messageLocation, messagePaidMedia, messagePhoto, messagePoll, messageStakeDice, messageSticker, messageStory, messageText (for link preview), messageVenue, messageVideo, messageVideoNote, or messageVoiceNote.
int53 message_id_
 The identifier of the message; may be 0 if the replied message is in unknown chat.
object_ptr< MessageOrigin > origin_
 Information about origin of the message if the message was from another chat or topic; may be null for messages from the same chat.
int32 origin_send_date_
 Point in time (Unix timestamp) when the message was sent if the message was from another chat or topic; 0 for messages from the same chat.
string poll_option_id_
 Identifier of the poll option in the original message that was replied; empty if none.
object_ptr< textQuote > quote_
 Chosen quote from the replied message; may be null if none.

Static Public Attributes

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

Constructor & Destructor Documentation

◆ messageReplyToMessage() [1/2]

messageReplyToMessage ( )

Describes a message replied by a given message.

◆ messageReplyToMessage() [2/2]

messageReplyToMessage ( int53 chat_id_,
int53 message_id_,
object_ptr< textQuote > && quote_,
int32 checklist_task_id_,
string const & poll_option_id_,
object_ptr< MessageOrigin > && origin_,
int32 origin_send_date_,
object_ptr< MessageContent > && content_ )

Describes a message replied by a given message.

Parameters
[in]chat_id_The identifier of the chat to which the message belongs; may be 0 if the replied message is in unknown chat.
[in]message_id_The identifier of the message; may be 0 if the replied message is in unknown chat.
[in]quote_Chosen quote from the replied message; may be null if none.
[in]checklist_task_id_Identifier of the checklist task in the original message that was replied; 0 if none.
[in]poll_option_id_Identifier of the poll option in the original message that was replied; empty if none.
[in]origin_Information about origin of the message if the message was from another chat or topic; may be null for messages from the same chat.
[in]origin_send_date_Point in time (Unix timestamp) when the message was sent if the message was from another chat or topic; 0 for messages from the same chat.
[in]content_Media content of the message if the message was from another chat or topic; may be null for messages from the same chat and messages without media. Can be only one of the following types: messageAnimation, messageAudio, messageChecklist, messageContact, messageDice, messageDocument, messageGame, messageGiveaway, messageGiveawayWinners, messageInvoice, messageLocation, messagePaidMedia, messagePhoto, messagePoll, messageStakeDice, messageSticker, messageStory, messageText (for link preview), messageVenue, messageVideo, messageVideoNote, or messageVoiceNote.

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: