tdlib-obf API
Reference documentation for the public tdlib-obf API, generated from TDLib schemas and public headers
Loading...
Searching...
No Matches
td::td_api::videoMessageAdvertisement Class Referencefinal

#include </home/runner/work/tdlib-obf/tdlib-obf/td/generate/auto/td/telegram/td_api.h>

Inheritance diagram for td::td_api::videoMessageAdvertisement:
td::td_api::Object td::TlObject

Public Member Functions

 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 Member Functions inherited from td::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
 

Public Attributes

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.
 

Static Public Attributes

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

Detailed Description

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

Definition at line 86872 of file td_api.h.

Constructor & Destructor Documentation

◆ videoMessageAdvertisement() [1/2]

td::td_api::videoMessageAdvertisement::videoMessageAdvertisement ( )

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

◆ videoMessageAdvertisement() [2/2]

td::td_api::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_ 
)

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 td::td_api::videoMessageAdvertisement::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 td::TlObject.

Member Data Documentation

◆ additional_info_

string td::td_api::videoMessageAdvertisement::additional_info_

If non-empty, additional information about the sponsored message to be shown along with the message.

Definition at line 86897 of file td_api.h.

◆ can_be_reported_

bool td::td_api::videoMessageAdvertisement::can_be_reported_

True, if the advertisement can be reported to Telegram moderators through reportVideoMessageAdvertisement.

Definition at line 86891 of file td_api.h.

◆ ID

const std::int32_t td::td_api::videoMessageAdvertisement::ID = -112391535
static

Identifier uniquely determining a type of the object.

Definition at line 86919 of file td_api.h.

◆ max_display_duration_

int32 td::td_api::videoMessageAdvertisement::max_display_duration_

The maximum amount of time the advertisement must be displayed before it must be automatically hidden, in seconds.

Definition at line 86889 of file td_api.h.

◆ min_display_duration_

int32 td::td_api::videoMessageAdvertisement::min_display_duration_

The minimum amount of time the advertisement must be displayed before it can be hidden by the user, in seconds.

Definition at line 86887 of file td_api.h.

◆ sponsor_

object_ptr<advertisementSponsor> td::td_api::videoMessageAdvertisement::sponsor_

Information about the sponsor of the advertisement.

Definition at line 86893 of file td_api.h.

◆ text_

string td::td_api::videoMessageAdvertisement::text_

Text of the advertisement.

Definition at line 86885 of file td_api.h.

◆ title_

string td::td_api::videoMessageAdvertisement::title_

Title of the sponsored message.

Definition at line 86895 of file td_api.h.

◆ unique_id_

int53 td::td_api::videoMessageAdvertisement::unique_id_

Unique identifier of this result.

Definition at line 86883 of file td_api.h.


The documentation for this class was generated from the following file: