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

Inherits MessageContent.

Description

A message with paid media.

Public Fields

int53 star_count_
 Number of 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.
 

Public Instance Methods

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

Constructor & Destructor Documentation

◆ messagePaidMedia() [1/2]

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

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: