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

This object describes the symbol shown on the pattern of a unique gift. https://core.telegram.org/bots/api#uniquegiftsymbol. More...

#include <UniqueGiftSymbol.hpp>

Public Member Functions

 UniqueGiftSymbol ()=default
 
 UniqueGiftSymbol (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 symbol.
 
Ptr< Stickersticker
 The sticker that represents the unique gift.
 
std::int32_t rarityPerMille {}
 The number of unique gifts that receive this symbol for every 1000 gifts upgraded.
 

Detailed Description

This object describes the symbol shown on the pattern of a unique gift. https://core.telegram.org/bots/api#uniquegiftsymbol.

Definition at line 8 of file UniqueGiftSymbol.hpp.

Constructor & Destructor Documentation

◆ UniqueGiftSymbol() [1/2]

tgbotxx::UniqueGiftSymbol::UniqueGiftSymbol ( )
default

◆ UniqueGiftSymbol() [2/2]

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

Definition at line 10 of file UniqueGiftSymbol.hpp.

Member Function Documentation

◆ fromJson()

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

Deserializes this object from JSON.

Definition at line 33 of file UniqueGiftSymbol.hpp.

◆ toJson()

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

Serializes this object to JSON.

Definition at line 24 of file UniqueGiftSymbol.hpp.

Member Data Documentation

◆ name

std::string tgbotxx::UniqueGiftSymbol::name

Name of the symbol.

Definition at line 15 of file UniqueGiftSymbol.hpp.

◆ rarityPerMille

std::int32_t tgbotxx::UniqueGiftSymbol::rarityPerMille {}

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

Definition at line 21 of file UniqueGiftSymbol.hpp.

◆ sticker

Ptr<Sticker> tgbotxx::UniqueGiftSymbol::sticker

The sticker that represents the unique gift.

Definition at line 18 of file UniqueGiftSymbol.hpp.


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