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