tgbotxx 1.2.9.5
Telegram Bot C++ Library
Loading...
Searching...
No Matches
tgbotxx::UniqueGiftColors Struct Reference

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.
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ UniqueGiftColors() [1/2]

tgbotxx::UniqueGiftColors::UniqueGiftColors ( )
default

◆ UniqueGiftColors() [2/2]

tgbotxx::UniqueGiftColors::UniqueGiftColors ( const nl::json &  json)
inlineexplicit

Definition at line 9 of file UniqueGiftColors.hpp.

Member Function Documentation

◆ fromJson()

void tgbotxx::UniqueGiftColors::fromJson ( const nl::json &  json)
inline

Deserializes this object from JSON.

Definition at line 44 of file UniqueGiftColors.hpp.

◆ toJson()

nl::json tgbotxx::UniqueGiftColors::toJson ( ) const
inline

Serializes this object to JSON.

Definition at line 32 of file UniqueGiftColors.hpp.

Member Data Documentation

◆ darkThemeMainColor

std::int32_t tgbotxx::UniqueGiftColors::darkThemeMainColor {}

Main color used in dark themes; RGB format.

Definition at line 26 of file UniqueGiftColors.hpp.

◆ darkThemeOtherColors

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.

◆ lightThemeMainColor

std::int32_t tgbotxx::UniqueGiftColors::lightThemeMainColor {}

Main color used in light themes; RGB format.

Definition at line 20 of file UniqueGiftColors.hpp.

◆ lightThemeOtherColors

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.

◆ modelCustomEmojiId

std::string tgbotxx::UniqueGiftColors::modelCustomEmojiId {}

Custom emoji identifier of the unique gift's model.

Definition at line 14 of file UniqueGiftColors.hpp.

◆ symbolCustomEmojiId

std::string tgbotxx::UniqueGiftColors::symbolCustomEmojiId {}

Custom emoji identifier of the unique gift's symbol.

Definition at line 17 of file UniqueGiftColors.hpp.


The documentation for this struct was generated from the following file: