tgbotxx 1.1.9.2
Telegram Bot C++ Library
Loading...
Searching...
No Matches
tgbotxx::PaidMediaInfo Struct Reference

Describes the paid media added to a message. https://core.telegram.org/bots/api#paidmediainfo. More...

#include <PaidMediaInfo.hpp>

Public Member Functions

 PaidMediaInfo ()=default
 
 PaidMediaInfo (const nl::json &json)
 
nl::json toJson () const
 Serializes this object to JSON.
 
void fromJson (const nl::json &json)
 Deserializes this object from JSON.
 

Public Attributes

std::int64_t starCount {}
 The number of Telegram Stars that must be paid to buy access to the media.
 
std::vector< Ptr< PaidMedia > > paidMedia
 Information about the paid media.
 

Detailed Description

Describes the paid media added to a message. https://core.telegram.org/bots/api#paidmediainfo.

Definition at line 8 of file PaidMediaInfo.hpp.

Constructor & Destructor Documentation

◆ PaidMediaInfo() [1/2]

tgbotxx::PaidMediaInfo::PaidMediaInfo ( )
default

◆ PaidMediaInfo() [2/2]

tgbotxx::PaidMediaInfo::PaidMediaInfo ( const nl::json &  json)
inlineexplicit

Definition at line 10 of file PaidMediaInfo.hpp.

Member Function Documentation

◆ fromJson()

void tgbotxx::PaidMediaInfo::fromJson ( const nl::json &  json)
inline

Deserializes this object from JSON.

Definition at line 31 of file PaidMediaInfo.hpp.

◆ toJson()

nl::json tgbotxx::PaidMediaInfo::toJson ( ) const
inline

Serializes this object to JSON.

Returns
JSON representation of this object

Definition at line 23 of file PaidMediaInfo.hpp.

Member Data Documentation

◆ paidMedia

std::vector<Ptr<PaidMedia> > tgbotxx::PaidMediaInfo::paidMedia

Information about the paid media.

Definition at line 18 of file PaidMediaInfo.hpp.

◆ starCount

std::int64_t tgbotxx::PaidMediaInfo::starCount {}

The number of Telegram Stars that must be paid to buy access to the media.

Definition at line 15 of file PaidMediaInfo.hpp.


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