|
tgbotxx 1.2.9.5
Telegram Bot C++ Library
|
This object contains information about the color scheme for a user's name, message replies and link previews based on a unique gift. https://core.telegram.org/bots/api#uniquegiftcolors. More...
#include <UniqueGiftColors.hpp>
Public Member Functions | |
| UniqueGiftColors ()=default | |
| UniqueGiftColors (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 | modelCustomEmojiId {} |
| Custom emoji identifier of the unique gift's model. | |
| std::string | symbolCustomEmojiId {} |
| Custom emoji identifier of the unique gift's symbol. | |
| std::int32_t | lightThemeMainColor {} |
| Main color used in light themes; RGB format. | |
| std::vector< std::int32_t > | lightThemeOtherColors |
| List of 1-3 additional colors used in light themes; RGB format. | |
| std::int32_t | darkThemeMainColor {} |
| Main color used in dark themes; RGB format. | |
| std::vector< std::int32_t > | darkThemeOtherColors |
| List of 1-3 additional colors used in dark themes; RGB format. | |
This object contains information about the color scheme for a user's name, message replies and link previews based on a unique gift. https://core.telegram.org/bots/api#uniquegiftcolors.
Definition at line 7 of file UniqueGiftColors.hpp.
|
default |
|
inlineexplicit |
Definition at line 9 of file UniqueGiftColors.hpp.
Deserializes this object from JSON.
Definition at line 44 of file UniqueGiftColors.hpp.
|
inline |
Serializes this object to JSON.
Definition at line 32 of file UniqueGiftColors.hpp.
| std::int32_t tgbotxx::UniqueGiftColors::darkThemeMainColor {} |
Main color used in dark themes; RGB format.
Definition at line 26 of file UniqueGiftColors.hpp.
| std::vector<std::int32_t> tgbotxx::UniqueGiftColors::darkThemeOtherColors |
List of 1-3 additional colors used in dark themes; RGB format.
Definition at line 29 of file UniqueGiftColors.hpp.
| std::int32_t tgbotxx::UniqueGiftColors::lightThemeMainColor {} |
Main color used in light themes; RGB format.
Definition at line 20 of file UniqueGiftColors.hpp.
| std::vector<std::int32_t> tgbotxx::UniqueGiftColors::lightThemeOtherColors |
List of 1-3 additional colors used in light themes; RGB format.
Definition at line 23 of file UniqueGiftColors.hpp.
| std::string tgbotxx::UniqueGiftColors::modelCustomEmojiId {} |
Custom emoji identifier of the unique gift's model.
Definition at line 14 of file UniqueGiftColors.hpp.
| std::string tgbotxx::UniqueGiftColors::symbolCustomEmojiId {} |
Custom emoji identifier of the unique gift's symbol.
Definition at line 17 of file UniqueGiftColors.hpp.