TDLib
|
Inherits td::td_api::Object.
Public Member Functions | |
sponsoredMessage () | |
sponsoredMessage (int53 message_id_, bool is_recommended_, object_ptr< MessageContent > &&content_, object_ptr< messageSponsor > &&sponsor_, string const &additional_info_) | |
std::int32_t | get_id () const final |
void | store (TlStorerToString &s, const char *field_name) const final |
Public Member Functions inherited from td::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 |
Public Attributes | |
int53 | message_id_ |
Message identifier; unique for the chat to which the sponsored message belongs among both ordinary and sponsored messages. | |
bool | is_recommended_ |
True, if the message needs to be labeled as "recommended" instead of "sponsored". | |
object_ptr< MessageContent > | content_ |
Content of the message. Currently, can be only of the type messageText. | |
object_ptr< messageSponsor > | sponsor_ |
Information about the sponsor of the message. | |
string | additional_info_ |
If non-empty, additional information about the sponsored message to be shown along with the message. | |
Static Public Attributes | |
static const std::int32_t | ID = 138735836 |
Identifier uniquely determining a type of the object. | |
Describes a sponsored message.
td::td_api::sponsoredMessage::sponsoredMessage | ( | ) |
Describes a sponsored message.
td::td_api::sponsoredMessage::sponsoredMessage | ( | int53 | message_id_, |
bool | is_recommended_, | ||
object_ptr< MessageContent > && | content_, | ||
object_ptr< messageSponsor > && | sponsor_, | ||
string const & | additional_info_ | ||
) |
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] | is_recommended_ | True, if the message needs to be labeled as "recommended" instead of "sponsored". |
[in] | content_ | Content of the message. Currently, can be only of the type messageText. |
[in] | sponsor_ | Information about the sponsor of the message. |
[in] | additional_info_ | If non-empty, additional information about the sponsored message to be shown along with the message. |
|
inlinefinalvirtual |
Returns identifier uniquely determining a type of the object.
Implements td::TlObject.
|
finalvirtual |
Helper function for to_string method. Appends string representation of the object to the storer.
[in] | s | Storer to which object string representation will be appended. |
[in] | field_name | Object field_name if applicable. |
Implements td::TlObject.