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

Inherits MessageContent.

Description

A message with paid media.

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

object_ptr< formattedText > caption_
 Media caption.
array< object_ptr< PaidMedia > > media_
 Information about the media.
bool show_caption_above_media_
 True, if the caption must be shown above the media; otherwise, the caption must be shown below the media.
int53 star_count_
 Number of Telegram Stars needed to buy access to the media in the message.

Static Public Attributes

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

Constructor & Destructor Documentation

◆ messagePaidMedia() [1/2]

messagePaidMedia ( )

A message with paid media.

◆ messagePaidMedia() [2/2]

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