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

The paid media to send is a photo. More...

#include <InputPaidMedia.hpp>

Inheritance diagram for tgbotxx::InputPaidMediaPhoto:
tgbotxx::InputPaidMedia

Public Member Functions

 InputPaidMediaPhoto ()
 
 InputPaidMediaPhoto (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::InputPaidMedia
 InputPaidMedia ()=default
 
 InputPaidMedia (const nl::json &json)
 
virtual ~InputPaidMedia ()=default
 

Additional Inherited Members

- Public Attributes inherited from tgbotxx::InputPaidMedia
std::string type
 Type of the media.
 
std::variant< cpr::File, std::string > media {""}
 File to send.
 

Detailed Description

The paid media to send is a photo.

Definition at line 55 of file InputPaidMedia.hpp.

Constructor & Destructor Documentation

◆ InputPaidMediaPhoto() [1/2]

tgbotxx::InputPaidMediaPhoto::InputPaidMediaPhoto ( )
inline

Definition at line 56 of file InputPaidMedia.hpp.

◆ InputPaidMediaPhoto() [2/2]

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

Definition at line 59 of file InputPaidMedia.hpp.

Member Function Documentation

◆ fromJson()

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

Deserializes this object from JSON.

Reimplemented from tgbotxx::InputPaidMedia.

Definition at line 69 of file InputPaidMedia.hpp.

◆ toJson()

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

Serializes this object to JSON.

Reimplemented from tgbotxx::InputPaidMedia.

Definition at line 64 of file InputPaidMedia.hpp.


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