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

Inherits Object.

Description

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< advertisementSponsorsponsor_
 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
 
- 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 = -112391535
 Identifier uniquely determining a type of the object.
 

Constructor & Destructor Documentation

◆ videoMessageAdvertisement() [1/2]

Describes an advertisent 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 advertisent 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.

Method 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: