|
tgbotxx 1.1.9.2
Telegram Bot C++ Library
|
This object describes paid media. Currently, it can be one of: More...
#include <PaidMedia.hpp>
Public Member Functions | |
| PaidMedia ()=default | |
| PaidMedia (const nl::json &json) | |
| virtual | ~PaidMedia ()=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 paid media, one of "preview", "photo" or "video". | |
This object describes paid media. Currently, it can be one of:
Definition at line 12 of file PaidMedia.hpp.
|
default |
|
inlineexplicit |
Definition at line 14 of file PaidMedia.hpp.
|
virtualdefault |
|
inlinevirtual |
Deserializes this object from JSON.
Reimplemented in tgbotxx::PaidMediaPreview, tgbotxx::PaidMediaPhoto, and tgbotxx::PaidMediaVideo.
Definition at line 31 of file PaidMedia.hpp.
|
inlinevirtual |
Serializes this object to JSON.
Reimplemented in tgbotxx::PaidMediaPreview, tgbotxx::PaidMediaPhoto, and tgbotxx::PaidMediaVideo.
Definition at line 24 of file PaidMedia.hpp.
| std::string tgbotxx::PaidMedia::type |
Type of the paid media, one of "preview", "photo" or "video".
Definition at line 20 of file PaidMedia.hpp.