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< UniqueGiftModel > model { }
 Model of the gift.
std::shared_ptr< UniqueGiftSymbol > symbol { }
 Symbol of the gift.
std::shared_ptr< UniqueGiftBackdrop > backdrop { }
 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< UniqueGiftColors > 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.
std::shared_ptr< Chat > publisherChat { }
 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 13358 of file Types.h.

Member Typedef Documentation

◆ Ptr

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

Definition at line 13359 of file Types.h.

Member Data Documentation

◆ backdrop

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

Backdrop of the gift.

Definition at line 13389 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 13368 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 13409 of file Types.h.

◆ giftId

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

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

Definition at line 13364 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 13398 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 13403 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 13394 of file Types.h.

◆ model

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

Model of the gift.

Definition at line 13381 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 13373 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 13377 of file Types.h.

◆ publisherChat

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

Optional. Information about the chat that published the gift.

Definition at line 13413 of file Types.h.

◆ symbol

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

Symbol of the gift.

Definition at line 13385 of file Types.h.


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