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