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

Inherits Object.

Description

Contains information about the last message from which a new message was forwarded last time.

Public Fields

int53 chat_id_
 Identifier of the chat to which the message that was forwarded belonged; may be 0 if unknown.
 
int53 message_id_
 Identifier of the message; may be 0 if unknown.
 
object_ptr< MessageSendersender_id_
 Identifier of the sender of the message; may be null if unknown or the new message was forwarded not to Saved Messages.
 
string sender_name_
 Name of the sender of the message if the sender is hidden by their privacy settings.
 
int32 date_
 Point in time (Unix timestamp) when the message is sent; 0 if unknown.
 
bool is_outgoing_
 True, if the message that was forwarded is outgoing; always false if sender is unknown.
 

Public Instance Methods

 forwardSource ()
 
 forwardSource (int53 chat_id_, int53 message_id_, object_ptr< MessageSender > &&sender_id_, string const &sender_name_, int32 date_, bool is_outgoing_)
 
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 = 1795337929
 Identifier uniquely determining a type of the object.
 

Constructor & Destructor Documentation

◆ forwardSource() [1/2]

Contains information about the last message from which a new message was forwarded last time.

◆ forwardSource() [2/2]

forwardSource ( int53  chat_id_,
int53  message_id_,
object_ptr< MessageSender > &&  sender_id_,
string const &  sender_name_,
int32  date_,
bool  is_outgoing_ 
)

Contains information about the last message from which a new message was forwarded last time.

Parameters
[in]chat_id_Identifier of the chat to which the message that was forwarded belonged; may be 0 if unknown.
[in]message_id_Identifier of the message; may be 0 if unknown.
[in]sender_id_Identifier of the sender of the message; may be null if unknown or the new message was forwarded not to Saved Messages.
[in]sender_name_Name of the sender of the message if the sender is hidden by their privacy settings.
[in]date_Point in time (Unix timestamp) when the message is sent; 0 if unknown.
[in]is_outgoing_True, if the message that was forwarded is outgoing; always false if sender is unknown.

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: