|
tgbotxx 1.1.9.2
Telegram Bot C++ Library
|
Base class describing paid media to send https://core.telegram.org/bots/api#inputpaidmedia. More...
#include <InputPaidMedia.hpp>
Public Member Functions | |
| InputPaidMedia ()=default | |
| InputPaidMedia (const nl::json &json) | |
| virtual | ~InputPaidMedia ()=default |
| virtual nl::json | toJson () const |
| Serializes this object to JSON. | |
| virtual void | fromJson (const nl::json &json) |
| Deserializes this object from JSON. | |
Public Attributes | |
| std::string | type |
| Type of the media. | |
| std::variant< cpr::File, std::string > | media {""} |
| File to send. | |
Base class describing paid media to send https://core.telegram.org/bots/api#inputpaidmedia.
Definition at line 10 of file InputPaidMedia.hpp.
|
default |
|
inlineexplicit |
Definition at line 12 of file InputPaidMedia.hpp.
|
virtualdefault |
|
inlinevirtual |
Deserializes this object from JSON.
Reimplemented in tgbotxx::InputPaidMediaPhoto, and tgbotxx::InputPaidMediaVideo.
Definition at line 41 of file InputPaidMedia.hpp.
|
inlinevirtual |
Serializes this object to JSON.
Reimplemented in tgbotxx::InputPaidMediaPhoto, and tgbotxx::InputPaidMediaVideo.
Definition at line 29 of file InputPaidMedia.hpp.
| std::variant<cpr::File, std::string> tgbotxx::InputPaidMedia::media {""} |
File to send.
Definition at line 26 of file InputPaidMedia.hpp.
| std::string tgbotxx::InputPaidMedia::type |
Type of the media.
Definition at line 18 of file InputPaidMedia.hpp.