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

Inherits Object.

Description

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

Public Member Functions

 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 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_
 Identifier of the chat to which the message that was forwarded belonged; may be 0 if unknown.
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.
int53 message_id_
 Identifier of the message; may be 0 if unknown.
object_ptr< MessageSender > sender_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.

Static Public Attributes

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

Constructor & Destructor Documentation

◆ forwardSource() [1/2]

forwardSource ( )

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.

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: