tgbotxx 1.1.9.2
Telegram Bot C++ Library
Loading...
Searching...
No Matches
tgbotxx::UniqueGiftBackdropColors Struct Reference

This object describes the colors of the backdrop of a unique gift. https://core.telegram.org/bots/api#uniquegiftbackdropcolors. More...

#include <UniqueGiftBackdropColors.hpp>

Public Member Functions

 UniqueGiftBackdropColors ()=default
 
 UniqueGiftBackdropColors (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 {}
 The color in the center of the backdrop in RGB format.
 
std::int32_t edgeColor {}
 The color on the edges of the backdrop in RGB format.
 
std::int32_t symbolColor {}
 The color to be applied to the symbol in RGB format.
 
std::int32_t textColor {}
 The color for the text on the backdrop in RGB format.
 

Detailed Description

This object describes the colors of the backdrop of a unique gift. https://core.telegram.org/bots/api#uniquegiftbackdropcolors.

Definition at line 8 of file UniqueGiftBackdropColors.hpp.

Constructor & Destructor Documentation

◆ UniqueGiftBackdropColors() [1/2]

tgbotxx::UniqueGiftBackdropColors::UniqueGiftBackdropColors ( )
default

◆ UniqueGiftBackdropColors() [2/2]

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

Definition at line 10 of file UniqueGiftBackdropColors.hpp.

Member Function Documentation

◆ fromJson()

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

Deserializes this object from JSON.

Definition at line 37 of file UniqueGiftBackdropColors.hpp.

◆ toJson()

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

Serializes this object to JSON.

Definition at line 27 of file UniqueGiftBackdropColors.hpp.

Member Data Documentation

◆ centerColor

std::int32_t tgbotxx::UniqueGiftBackdropColors::centerColor {}

The color in the center of the backdrop in RGB format.

Definition at line 15 of file UniqueGiftBackdropColors.hpp.

◆ edgeColor

std::int32_t tgbotxx::UniqueGiftBackdropColors::edgeColor {}

The color on the edges of the backdrop in RGB format.

Definition at line 18 of file UniqueGiftBackdropColors.hpp.

◆ symbolColor

std::int32_t tgbotxx::UniqueGiftBackdropColors::symbolColor {}

The color to be applied to the symbol in RGB format.

Definition at line 21 of file UniqueGiftBackdropColors.hpp.

◆ textColor

std::int32_t tgbotxx::UniqueGiftBackdropColors::textColor {}

The color for the text on the backdrop in RGB format.

Definition at line 24 of file UniqueGiftBackdropColors.hpp.


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