|
tgbotxx 1.2.9.5
Telegram Bot C++ Library
|
This object describes the background of a gift. https://core.telegram.org/bots/api#giftbackground. More...
#include <GiftBackground.hpp>
Public Member Functions | |
| GiftBackground ()=default | |
| GiftBackground (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::int32_t | centerColor {} |
| Center color of the background in RGB format. | |
| std::int32_t | edgeColor {} |
| Edge color of the background in RGB format. | |
| std::int32_t | textColor {} |
| Text color of the background in RGB format. | |
This object describes the background of a gift. https://core.telegram.org/bots/api#giftbackground.
Definition at line 7 of file GiftBackground.hpp.
|
default |
|
inlineexplicit |
Definition at line 9 of file GiftBackground.hpp.
Deserializes this object from JSON.
Definition at line 34 of file GiftBackground.hpp.
|
inline |
Serializes this object to JSON.
Definition at line 25 of file GiftBackground.hpp.
| std::int32_t tgbotxx::GiftBackground::centerColor {} |
Center color of the background in RGB format.
Definition at line 14 of file GiftBackground.hpp.
| std::int32_t tgbotxx::GiftBackground::edgeColor {} |
Edge color of the background in RGB format.
Definition at line 17 of file GiftBackground.hpp.
| std::int32_t tgbotxx::GiftBackground::textColor {} |
Text color of the background in RGB format.
Definition at line 20 of file GiftBackground.hpp.