Inherits Object.
Describes an advertisent to be shown while a video from a message is watched.
Public Fields | |
int53 | unique_id_ |
Unique identifier of this result. | |
string | text_ |
Text of the advertisement. | |
int32 | min_display_duration_ |
The minimum amount of time the advertisement must be displayed before it can be hidden by the user, in seconds. | |
int32 | max_display_duration_ |
The maximum amount of time the advertisement must be displayed before it must be automatically hidden, in seconds. | |
bool | can_be_reported_ |
True, if the advertisement can be reported to Telegram moderators through reportVideoMessageAdvertisement. | |
object_ptr< advertisementSponsor > | sponsor_ |
Information about the sponsor of the advertisement. | |
string | title_ |
Title of the sponsored message. | |
string | additional_info_ |
If non-empty, additional information about the sponsored message to be shown along with the message. | |
Public Instance Methods | |
videoMessageAdvertisement () | |
videoMessageAdvertisement (int53 unique_id_, string const &text_, int32 min_display_duration_, int32 max_display_duration_, bool can_be_reported_, object_ptr< advertisementSponsor > &&sponsor_, string const &title_, string const &additional_info_) | |
void | store (TlStorerToString &s, const char *field_name) const final |
![]() | |
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 = -112391535 |
Identifier uniquely determining a type of the object. | |
Describes an advertisent to be shown while a video from a message is watched.
videoMessageAdvertisement | ( | int53 | unique_id_, |
string const & | text_, | ||
int32 | min_display_duration_, | ||
int32 | max_display_duration_, | ||
bool | can_be_reported_, | ||
object_ptr< advertisementSponsor > && | sponsor_, | ||
string const & | title_, | ||
string const & | additional_info_ | ||
) |
Describes an advertisent to be shown while a video from a message is watched.
[in] | unique_id_ | Unique identifier of this result. |
[in] | text_ | Text of the advertisement. |
[in] | min_display_duration_ | The minimum amount of time the advertisement must be displayed before it can be hidden by the user, in seconds. |
[in] | max_display_duration_ | The maximum amount of time the advertisement must be displayed before it must be automatically hidden, in seconds. |
[in] | can_be_reported_ | True, if the advertisement can be reported to Telegram moderators through reportVideoMessageAdvertisement. |
[in] | sponsor_ | Information about the sponsor of the advertisement. |
[in] | title_ | Title of the sponsored message. |
[in] | additional_info_ | If non-empty, additional information about the sponsored message to be shown along with the message. |
|
finalvirtual |