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

Inherits MessageForwardInfo.

Description

The message was originally written by a known user.

Public Fields

std::int32_t sender_user_id_
 Identifier of the user that originally sent this message.
 
std::int32_t date_
 Point in time (Unix timestamp) when the message was originally sent.
 
std::int64_t forwarded_from_chat_id_
 For messages forwarded to the chat with the current user (saved messages), the identifier of the chat from which the message was forwarded; 0 if unknown.
 
std::int64_t forwarded_from_message_id_
 For messages forwarded to the chat with the current user (saved messages) the identifier of the original message from which the new message was forwarded; 0 if unknown.
 

Public Instance Methods

 messageForwardedFromUser ()
 
 messageForwardedFromUser (std::int32_t sender_user_id_, std::int32_t date_, std::int64_t forwarded_from_chat_id_, std::int64_t forwarded_from_message_id_)
 
std::int32_t get_id () const final
 
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 = 1004332765
 Identifier uniquely determining a type of the object.
 

Constructor & Destructor Documentation

◆ messageForwardedFromUser() [1/2]

Default constructor. All fields will be value-initilaized.

◆ messageForwardedFromUser() [2/2]

messageForwardedFromUser ( std::int32_t  sender_user_id_,
std::int32_t  date_,
std::int64_t  forwarded_from_chat_id_,
std::int64_t  forwarded_from_message_id_ 
)

Constructor for initialization of all fields.

Parameters
[in]sender_user_id_Identifier of the user that originally sent this message.
[in]date_Point in time (Unix timestamp) when the message was originally sent.
[in]forwarded_from_chat_id_For messages forwarded to the chat with the current user (saved messages), the identifier of the chat from which the message was forwarded; 0 if unknown.
[in]forwarded_from_message_id_For messages forwarded to the chat with the current user (saved messages) the identifier of the original message from which the new message was forwarded; 0 if unknown.

Method Documentation

◆ get_id()

std::int32_t get_id ( ) const
inlinefinalvirtual

Returns identifier uniquely determining a type of the object.

Returns
this->ID.

Implements TlObject.

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