tgbot-cpp
Loading...
Searching...
No Matches
TgBot::UniqueGiftModel Struct Reference

This object describes the model of a unique gift. More...

#include <Types.h>

Public Types

using Ptr = std::shared_ptr<UniqueGiftModel>

Public Attributes

std::string name { }
 Name of the model.
std::shared_ptr< Stickersticker { }
 The sticker that represents the unique gift.
std::int32_t rarityPerMille { }
 The number of unique gifts that receive this model for every 1000 gift upgrades. Always 0 for crafted gifts.
std::optional< std::string > rarity { }
 Optional. Rarity of the model if it is a crafted model. Currently, can be “uncommon”, “rare”, “epic”, or “legendary”.

Detailed Description

This object describes the model of a unique gift.

Definition at line 14551 of file Types.h.

Member Typedef Documentation

◆ Ptr

using TgBot::UniqueGiftModel::Ptr = std::shared_ptr<UniqueGiftModel>

Definition at line 14552 of file Types.h.

Member Data Documentation

◆ name

std::string TgBot::UniqueGiftModel::name { }

Name of the model.

Definition at line 14557 of file Types.h.

◆ rarity

std::optional<std::string> TgBot::UniqueGiftModel::rarity { }

Optional. Rarity of the model if it is a crafted model. Currently, can be “uncommon”, “rare”, “epic”, or “legendary”.

Definition at line 14574 of file Types.h.

◆ rarityPerMille

std::int32_t TgBot::UniqueGiftModel::rarityPerMille { }

The number of unique gifts that receive this model for every 1000 gift upgrades. Always 0 for crafted gifts.

Definition at line 14568 of file Types.h.

◆ sticker

std::shared_ptr<Sticker> TgBot::UniqueGiftModel::sticker { }

The sticker that represents the unique gift.

Definition at line 14562 of file Types.h.


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