|
tgbotxx 1.2.9.5
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 gift upgrades. Always 0 for crafted gifts. | |
| std::string | rarity |
| Optional. Rarity of the model if it is a crafted model. Currently, can be “uncommon”, “rare”, “epic”, or “legendary”. | |
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.
Deserializes this object from JSON.
Definition at line 37 of file UniqueGiftModel.hpp.
|
inline |
Serializes this object to JSON.
Definition at line 27 of file UniqueGiftModel.hpp.
| std::string tgbotxx::UniqueGiftModel::name |
Name of the model.
Definition at line 15 of file UniqueGiftModel.hpp.
| std::string tgbotxx::UniqueGiftModel::rarity |
Optional. Rarity of the model if it is a crafted model. Currently, can be “uncommon”, “rare”, “epic”, or “legendary”.
Definition at line 24 of file UniqueGiftModel.hpp.
| std::int32_t tgbotxx::UniqueGiftModel::rarityPerMille {} |
The number of unique gifts that receive this model for every 1000 gift upgrades. Always 0 for crafted gifts.
Definition at line 21 of file UniqueGiftModel.hpp.
The sticker that represents the unique gift.
Definition at line 18 of file UniqueGiftModel.hpp.