Inherits Object.
Describes a sponsored message.
Public Fields | |
int53 | message_id_ |
Message identifier; unique for the chat to which the sponsored message belongs among both ordinary and sponsored messages. | |
int53 | sponsor_chat_id_ |
Chat identifier. | |
object_ptr< InternalLinkType > | link_ |
An internal link to be opened when the sponsored message is clicked; may be null. If null, the sponsor chat needs to be opened instead. | |
object_ptr< MessageContent > | content_ |
Content of the message. Currently, can be only of the type messageText. | |
Public Instance Methods | |
sponsoredMessage () | |
sponsoredMessage (int53 message_id_, int53 sponsor_chat_id_, object_ptr< InternalLinkType > &&link_, object_ptr< MessageContent > &&content_) | |
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 | |
TlObject & | operator= (const TlObject &)=delete |
TlObject (TlObject &&)=default | |
TlObject & | operator= (TlObject &&)=default |
virtual | ~TlObject ()=default |
Static Public Attributes | |
static const std::int32_t | ID = -1734768993 |
Identifier uniquely determining a type of the object. | |
sponsoredMessage | ( | ) |
Describes a sponsored message.
sponsoredMessage | ( | int53 | message_id_, |
int53 | sponsor_chat_id_, | ||
object_ptr< InternalLinkType > && | link_, | ||
object_ptr< MessageContent > && | content_ | ||
) |
Describes a sponsored message.
[in] | message_id_ | Message identifier; unique for the chat to which the sponsored message belongs among both ordinary and sponsored messages. |
[in] | sponsor_chat_id_ | Chat identifier. |
[in] | link_ | An internal link to be opened when the sponsored message is clicked; may be null. If null, the sponsor chat needs to be opened instead. |
[in] | content_ | Content of the message. Currently, can be only of the type messageText. |
|
inlinefinalvirtual |
|
finalvirtual |