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

Inherits Object.

Description

Describes an advertisement to be shown while a video from a message is watched.

Public Member Functions

void store (TlStorerToString &s, const char *field_name) const final
 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_)
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

string additional_info_
 If non-empty, additional information about the sponsored message to be shown along with the message.
bool can_be_reported_
 True, if the advertisement can be reported to Telegram moderators through reportVideoMessageAdvertisement.
int32 max_display_duration_
 The maximum amount of time the advertisement must be displayed before it must be automatically hidden, in seconds.
int32 min_display_duration_
 The minimum amount of time the advertisement must be displayed before it can be hidden by the user, in seconds.
object_ptr< advertisementSponsor > sponsor_
 Information about the sponsor of the advertisement.
string text_
 Text of the advertisement.
string title_
 Title of the sponsored message.
int53 unique_id_
 Unique identifier of this result.

Static Public Attributes

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

Constructor & Destructor Documentation

◆ videoMessageAdvertisement() [1/2]

videoMessageAdvertisement ( )

Describes an advertisement to be shown while a video from a message is watched.

◆ videoMessageAdvertisement() [2/2]

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 advertisement to be shown while a video from a message is watched.

Parameters
[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.

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: