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::messagePaidMedia Class Referencefinal

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

Inheritance diagram for td::td_api::messagePaidMedia:
td::td_api::MessageContent td::td_api::Object td::TlObject

Public Member Functions

 messagePaidMedia ()
 
 messagePaidMedia (int53 star_count_, array< object_ptr< PaidMedia > > &&media_, object_ptr< formattedText > &&caption_, bool show_caption_above_media_)
 
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 star_count_
 Number of Telegram Stars needed to buy access to the media in the message.
 
array< object_ptr< PaidMedia > > media_
 Information about the media.
 
object_ptr< formattedTextcaption_
 Media caption.
 
bool show_caption_above_media_
 True, if the caption must be shown above the media; otherwise, the caption must be shown below the media.
 

Static Public Attributes

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

Detailed Description

A message with paid media.

Definition at line 39070 of file td_api.h.

Constructor & Destructor Documentation

◆ messagePaidMedia() [1/2]

td::td_api::messagePaidMedia::messagePaidMedia ( )

A message with paid media.

◆ messagePaidMedia() [2/2]

td::td_api::messagePaidMedia::messagePaidMedia ( int53  star_count_,
array< object_ptr< PaidMedia > > &&  media_,
object_ptr< formattedText > &&  caption_,
bool  show_caption_above_media_ 
)

A message with paid media.

Parameters
[in]star_count_Number of Telegram Stars needed to buy access to the media in the message.
[in]media_Information about the media.
[in]caption_Media caption.
[in]show_caption_above_media_True, if the caption must be shown above the media; otherwise, the caption must be shown below the media.

Member Function Documentation

◆ store()

void td::td_api::messagePaidMedia::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

◆ caption_

object_ptr<formattedText> td::td_api::messagePaidMedia::caption_

Media caption.

Definition at line 39085 of file td_api.h.

◆ ID

const std::int32_t td::td_api::messagePaidMedia::ID = -724750073
static

Identifier uniquely determining a type of the object.

Definition at line 39105 of file td_api.h.

◆ media_

array<object_ptr<PaidMedia> > td::td_api::messagePaidMedia::media_

Information about the media.

Definition at line 39083 of file td_api.h.

◆ show_caption_above_media_

bool td::td_api::messagePaidMedia::show_caption_above_media_

True, if the caption must be shown above the media; otherwise, the caption must be shown below the media.

Definition at line 39087 of file td_api.h.

◆ star_count_

int53 td::td_api::messagePaidMedia::star_count_

Number of Telegram Stars needed to buy access to the media in the message.

Definition at line 39081 of file td_api.h.


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