|
tgbotxx 1.1.9.2
Telegram Bot C++ Library
|
This object describes the model of a unique gift. https://core.telegram.org/bots/api#uniquegiftmodel. More...
#include <UniqueGiftModel.hpp>
Public Member Functions | |
| UniqueGiftModel ()=default | |
| UniqueGiftModel (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::string | name |
| Name of the model. | |
| Ptr< Sticker > | sticker |
| The sticker that represents the unique gift. | |
| std::int32_t | rarityPerMille {} |
| The number of unique gifts that receive this model for every 1000 gifts upgraded. | |
This object describes the model of a unique gift. https://core.telegram.org/bots/api#uniquegiftmodel.
Definition at line 8 of file UniqueGiftModel.hpp.
|
default |
|
inlineexplicit |
Definition at line 10 of file UniqueGiftModel.hpp.
|
inline |
Deserializes this object from JSON.
Definition at line 33 of file UniqueGiftModel.hpp.
|
inline |
Serializes this object to JSON.
Definition at line 24 of file UniqueGiftModel.hpp.
| std::string tgbotxx::UniqueGiftModel::name |
Name of the model.
Definition at line 15 of file UniqueGiftModel.hpp.
| std::int32_t tgbotxx::UniqueGiftModel::rarityPerMille {} |
The number of unique gifts that receive this model for every 1000 gifts upgraded.
Definition at line 21 of file UniqueGiftModel.hpp.
The sticker that represents the unique gift.
Definition at line 18 of file UniqueGiftModel.hpp.