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

Inherits MessageForwardInfo.

Description

The message was originally a post in a channel.

Public Fields

std::int64_t chat_id_
 Identifier of the chat from which the message was forwarded.
 
std::string author_signature_
 Post author signature.
 
std::int32_t date_
 Point in time (Unix timestamp) when the message was originally sent.
 
std::int64_t message_id_
 Message identifier of the original message from which the new message was forwarded; 0 if unknown.
 
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

 messageForwardedPost ()
 
 messageForwardedPost (std::int64_t chat_id_, std::string const &author_signature_, std::int32_t date_, std::int64_t message_id_, 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 = -244050875
 Identifier uniquely determining a type of the object.
 

Constructor & Destructor Documentation

◆ messageForwardedPost() [1/2]

Default constructor. All fields will be value-initilaized.

◆ messageForwardedPost() [2/2]

messageForwardedPost ( std::int64_t  chat_id_,
std::string const &  author_signature_,
std::int32_t  date_,
std::int64_t  message_id_,
std::int64_t  forwarded_from_chat_id_,
std::int64_t  forwarded_from_message_id_ 
)

Constructor for initialization of all fields.

Parameters
[in]chat_id_Identifier of the chat from which the message was forwarded.
[in]author_signature_Post author signature.
[in]date_Point in time (Unix timestamp) when the message was originally sent.
[in]message_id_Message identifier of the original message from which the new message was forwarded; 0 if unknown.
[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: