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

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.
 

Detailed Description

This object describes the background of a gift. https://core.telegram.org/bots/api#giftbackground.

Definition at line 7 of file GiftBackground.hpp.

Constructor & Destructor Documentation

◆ GiftBackground() [1/2]

tgbotxx::GiftBackground::GiftBackground ( )
default

◆ GiftBackground() [2/2]

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

Definition at line 9 of file GiftBackground.hpp.

Member Function Documentation

◆ fromJson()

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

Deserializes this object from JSON.

Definition at line 34 of file GiftBackground.hpp.

◆ toJson()

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

Serializes this object to JSON.

Returns
JSON representation of this object

Definition at line 25 of file GiftBackground.hpp.

Member Data Documentation

◆ centerColor

std::int32_t tgbotxx::GiftBackground::centerColor {}

Center color of the background in RGB format.

Definition at line 14 of file GiftBackground.hpp.

◆ edgeColor

std::int32_t tgbotxx::GiftBackground::edgeColor {}

Edge color of the background in RGB format.

Definition at line 17 of file GiftBackground.hpp.

◆ textColor

std::int32_t tgbotxx::GiftBackground::textColor {}

Text color of the background in RGB format.

Definition at line 20 of file GiftBackground.hpp.


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