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

The paid media is a photo. https://core.telegram.org/bots/api#paidmediaphoto. More...

#include <PaidMedia.hpp>

Inheritance diagram for tgbotxx::PaidMediaPhoto:
tgbotxx::PaidMedia

Public Member Functions

 PaidMediaPhoto ()
 
 PaidMediaPhoto (const nl::json &json)
 
nl::json toJson () const override
 Serializes this object to JSON.
 
void fromJson (const nl::json &json) override
 Deserializes this object from JSON.
 
- Public Member Functions inherited from tgbotxx::PaidMedia
 PaidMedia ()=default
 
 PaidMedia (const nl::json &json)
 
virtual ~PaidMedia ()=default
 

Public Attributes

std::vector< Ptr< PhotoSize > > photo
 The photo.
 
- Public Attributes inherited from tgbotxx::PaidMedia
std::string type
 Type of the paid media, one of "preview", "photo" or "video".
 

Detailed Description

The paid media is a photo. https://core.telegram.org/bots/api#paidmediaphoto.

Definition at line 79 of file PaidMedia.hpp.

Constructor & Destructor Documentation

◆ PaidMediaPhoto() [1/2]

tgbotxx::PaidMediaPhoto::PaidMediaPhoto ( )
inline

Definition at line 80 of file PaidMedia.hpp.

◆ PaidMediaPhoto() [2/2]

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

Definition at line 83 of file PaidMedia.hpp.

Member Function Documentation

◆ fromJson()

void tgbotxx::PaidMediaPhoto::fromJson ( const nl::json &  json)
inlineoverridevirtual

Deserializes this object from JSON.

Reimplemented from tgbotxx::PaidMedia.

Definition at line 96 of file PaidMedia.hpp.

◆ toJson()

nl::json tgbotxx::PaidMediaPhoto::toJson ( ) const
inlineoverridevirtual

Serializes this object to JSON.

Returns
JSON representation of this object

Reimplemented from tgbotxx::PaidMedia.

Definition at line 90 of file PaidMedia.hpp.

Member Data Documentation

◆ photo

std::vector<Ptr<PhotoSize> > tgbotxx::PaidMediaPhoto::photo

The photo.

Definition at line 88 of file PaidMedia.hpp.


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