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

This object describes a unique gift that was upgraded from a regular gift. More...

#include <Types.h>

Public Types

using Ptr = std::shared_ptr<UniqueGift>

Public Attributes

std::string giftId { }
 Identifier of the regular gift from which the gift was upgraded.
std::string baseName { }
 Human-readable name of the regular gift from which this unique gift was upgraded.
std::string name { }
 Unique name of the gift. This name can be used in https://t.me/nft/... links and story areas.
std::int32_t number { }
 Unique number of the upgraded gift among gifts upgraded from the same regular gift.
std::shared_ptr< UniqueGiftModelmodel { }
 Model of the gift.
std::shared_ptr< UniqueGiftSymbolsymbol { }
 Symbol of the gift.
std::shared_ptr< UniqueGiftBackdropbackdrop { }
 Backdrop of the gift.
std::optional< bool > isPremium { }
 Optional. True, if the original regular gift was exclusively purchaseable by Telegram Premium subscribers.
std::optional< bool > isBurned { }
 Optional. True, if the gift was used to craft another gift and isn't available anymore.
std::optional< bool > isFromBlockchain { }
 Optional. True, if the gift is assigned from the TON blockchain and can't be resold or transferred in Telegram.
std::shared_ptr< UniqueGiftColorscolors { }
 Optional. The color scheme that can be used by the gift's owner for the chat's name, replies to messages and link previews; for business account gifts and gifts that are currently on sale only.
std::shared_ptr< ChatpublisherChat { }
 Optional. Information about the chat that published the gift.

Detailed Description

This object describes a unique gift that was upgraded from a regular gift.

Definition at line 14322 of file Types.h.

Member Typedef Documentation

◆ Ptr

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

Definition at line 14323 of file Types.h.

Member Data Documentation

◆ backdrop

std::shared_ptr<UniqueGiftBackdrop> TgBot::UniqueGift::backdrop { }

Backdrop of the gift.

Definition at line 14359 of file Types.h.

◆ baseName

std::string TgBot::UniqueGift::baseName { }

Human-readable name of the regular gift from which this unique gift was upgraded.

Definition at line 14333 of file Types.h.

◆ colors

std::shared_ptr<UniqueGiftColors> TgBot::UniqueGift::colors { }

Optional. The color scheme that can be used by the gift's owner for the chat's name, replies to messages and link previews; for business account gifts and gifts that are currently on sale only.

Definition at line 14383 of file Types.h.

◆ giftId

std::string TgBot::UniqueGift::giftId { }

Identifier of the regular gift from which the gift was upgraded.

Definition at line 14328 of file Types.h.

◆ isBurned

std::optional<bool> TgBot::UniqueGift::isBurned { }

Optional. True, if the gift was used to craft another gift and isn't available anymore.

Definition at line 14370 of file Types.h.

◆ isFromBlockchain

std::optional<bool> TgBot::UniqueGift::isFromBlockchain { }

Optional. True, if the gift is assigned from the TON blockchain and can't be resold or transferred in Telegram.

Definition at line 14376 of file Types.h.

◆ isPremium

std::optional<bool> TgBot::UniqueGift::isPremium { }

Optional. True, if the original regular gift was exclusively purchaseable by Telegram Premium subscribers.

Definition at line 14365 of file Types.h.

◆ model

std::shared_ptr<UniqueGiftModel> TgBot::UniqueGift::model { }

Model of the gift.

Definition at line 14349 of file Types.h.

◆ name

std::string TgBot::UniqueGift::name { }

Unique name of the gift. This name can be used in https://t.me/nft/... links and story areas.

Definition at line 14339 of file Types.h.

◆ number

std::int32_t TgBot::UniqueGift::number { }

Unique number of the upgraded gift among gifts upgraded from the same regular gift.

Definition at line 14344 of file Types.h.

◆ publisherChat

std::shared_ptr<Chat> TgBot::UniqueGift::publisherChat { }

Optional. Information about the chat that published the gift.

Definition at line 14388 of file Types.h.

◆ symbol

std::shared_ptr<UniqueGiftSymbol> TgBot::UniqueGift::symbol { }

Symbol of the gift.

Definition at line 14354 of file Types.h.


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