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

Inherits Object.

Description

Contains information about a link to a message in a chat.

Public Fields

bool is_public_
 True, if the link is a public link for a message in a chat.
 
int53 chat_id_
 If found, identifier of the chat to which the message belongs, 0 otherwise.
 
object_ptr< messagemessage_
 If found, the linked message; may be null.
 
int32 media_timestamp_
 Timestamp from which the video/audio/video note/voice note playing must start, in seconds; 0 if not specified. The media can be in the message content or in its web page preview.
 
bool for_album_
 True, if the whole media album to which the message belongs is linked.
 
bool for_comment_
 True, if the message is linked as a channel post comment or from a message thread.
 

Public Instance Methods

 messageLinkInfo ()
 
 messageLinkInfo (bool is_public_, int53 chat_id_, object_ptr< message > &&message_, int32 media_timestamp_, bool for_album_, bool for_comment_)
 
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 = -981646294
 Identifier uniquely determining a type of the object.
 

Constructor & Destructor Documentation

◆ messageLinkInfo() [1/2]

Contains information about a link to a message in a chat.

◆ messageLinkInfo() [2/2]

messageLinkInfo ( bool  is_public_,
int53  chat_id_,
object_ptr< message > &&  message_,
int32  media_timestamp_,
bool  for_album_,
bool  for_comment_ 
)

Contains information about a link to a message in a chat.

Parameters
[in]is_public_True, if the link is a public link for a message in a chat.
[in]chat_id_If found, identifier of the chat to which the message belongs, 0 otherwise.
[in]message_If found, the linked message; may be null.
[in]media_timestamp_Timestamp from which the video/audio/video note/voice note playing must start, in seconds; 0 if not specified. The media can be in the message content or in its web page preview.
[in]for_album_True, if the whole media album to which the message belongs is linked.
[in]for_comment_True, if the message is linked as a channel post comment or from a message thread.

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: