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

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

#include <UniqueGiftBackdrop.hpp>

Public Member Functions

 UniqueGiftBackdrop ()=default
 
 UniqueGiftBackdrop (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 name
 Name of the backdrop.
 
Ptr< UniqueGiftBackdropColorscolors
 Colors of the backdrop.
 
std::int32_t rarityPerMille {}
 The number of unique gifts that receive this backdrop for every 1000 gifts upgraded.
 

Detailed Description

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

Definition at line 8 of file UniqueGiftBackdrop.hpp.

Constructor & Destructor Documentation

◆ UniqueGiftBackdrop() [1/2]

tgbotxx::UniqueGiftBackdrop::UniqueGiftBackdrop ( )
default

◆ UniqueGiftBackdrop() [2/2]

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

Definition at line 10 of file UniqueGiftBackdrop.hpp.

Member Function Documentation

◆ fromJson()

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

Deserializes this object from JSON.

Definition at line 33 of file UniqueGiftBackdrop.hpp.

◆ toJson()

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

Serializes this object to JSON.

Definition at line 24 of file UniqueGiftBackdrop.hpp.

Member Data Documentation

◆ colors

Ptr<UniqueGiftBackdropColors> tgbotxx::UniqueGiftBackdrop::colors

Colors of the backdrop.

Definition at line 18 of file UniqueGiftBackdrop.hpp.

◆ name

std::string tgbotxx::UniqueGiftBackdrop::name

Name of the backdrop.

Definition at line 15 of file UniqueGiftBackdrop.hpp.

◆ rarityPerMille

std::int32_t tgbotxx::UniqueGiftBackdrop::rarityPerMille {}

The number of unique gifts that receive this backdrop for every 1000 gifts upgraded.

Definition at line 21 of file UniqueGiftBackdrop.hpp.


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