Describes a service message about a unique gift that was sent or received.
More...
#include <Types.h>
|
| std::shared_ptr< UniqueGift > | gift { } |
| | Information about the gift.
|
| std::string | origin { } |
| | Origin of the gift. Currently, either “upgrade” for gifts upgraded from regular gifts, “transfer” for gifts transferred from other users or channels, “resale” for gifts bought from other users, “gifted_upgrade” for upgrades purchased after the gift was sent, or “offer” for gifts bought or sold through gift purchase offers.
|
| std::optional< std::string > | text { } |
| | Optional. Text of the message that was added to the gift.
|
| std::optional< std::vector< std::shared_ptr< MessageEntity > > > | entities { } |
| | Optional. Special entities that appear in the text.
|
| std::optional< bool > | isPrivate { } |
| | Optional. True, if the sender and gift text are shown only to the gift receiver; otherwise, everyone will be able to see them.
|
| std::optional< std::string > | lastResaleCurrency { } |
| | Optional. For gifts bought from other users, the currency in which the payment for the gift was done. Currently, one of “XTR” for Telegram Stars or “TON” for TON grams.
|
| std::optional< std::int32_t > | lastResaleAmount { } |
| | Optional. For gifts bought from other users, the price paid for the gift in either Telegram Stars or nanograms.
|
| std::optional< std::string > | ownedGiftId { } |
| | Optional. Unique identifier of the received gift for the bot; only present for gifts received on behalf of business accounts.
|
| std::optional< std::int32_t > | transferStarCount { } |
| | Optional. Number of Telegram Stars that must be paid to transfer the gift; omitted if the bot cannot transfer the gift.
|
| std::optional< std::int32_t > | nextTransferDate { } |
| | Optional. Point in time (Unix timestamp) when the gift can be transferred. If it is in the past, then the gift can be transferred now.
|
Describes a service message about a unique gift that was sent or received.
Definition at line 13512 of file Types.h.
◆ Ptr
◆ entities
| std::optional<std::vector<std::shared_ptr<MessageEntity> > > TgBot::UniqueGiftInfo::entities { } |
Optional. Special entities that appear in the text.
Definition at line 13533 of file Types.h.
◆ gift
| std::shared_ptr<UniqueGift> TgBot::UniqueGiftInfo::gift { } |
Information about the gift.
Definition at line 13518 of file Types.h.
◆ isPrivate
| std::optional<bool> TgBot::UniqueGiftInfo::isPrivate { } |
Optional. True, if the sender and gift text are shown only to the gift receiver; otherwise, everyone will be able to see them.
Definition at line 13538 of file Types.h.
◆ lastResaleAmount
| std::optional<std::int32_t> TgBot::UniqueGiftInfo::lastResaleAmount { } |
Optional. For gifts bought from other users, the price paid for the gift in either Telegram Stars or nanograms.
Definition at line 13548 of file Types.h.
◆ lastResaleCurrency
| std::optional<std::string> TgBot::UniqueGiftInfo::lastResaleCurrency { } |
Optional. For gifts bought from other users, the currency in which the payment for the gift was done. Currently, one of “XTR” for Telegram Stars or “TON” for TON grams.
Definition at line 13543 of file Types.h.
◆ nextTransferDate
| std::optional<std::int32_t> TgBot::UniqueGiftInfo::nextTransferDate { } |
Optional. Point in time (Unix timestamp) when the gift can be transferred. If it is in the past, then the gift can be transferred now.
Definition at line 13563 of file Types.h.
◆ origin
| std::string TgBot::UniqueGiftInfo::origin { } |
Origin of the gift. Currently, either “upgrade” for gifts upgraded from regular gifts, “transfer” for gifts transferred from other users or channels, “resale” for gifts bought from other users, “gifted_upgrade” for upgrades purchased after the gift was sent, or “offer” for gifts bought or sold through gift purchase offers.
Definition at line 13525 of file Types.h.
◆ ownedGiftId
| std::optional<std::string> TgBot::UniqueGiftInfo::ownedGiftId { } |
Optional. Unique identifier of the received gift for the bot; only present for gifts received on behalf of business accounts.
Definition at line 13553 of file Types.h.
◆ text
| std::optional<std::string> TgBot::UniqueGiftInfo::text { } |
Optional. Text of the message that was added to the gift.
Definition at line 13529 of file Types.h.
◆ transferStarCount
| std::optional<std::int32_t> TgBot::UniqueGiftInfo::transferStarCount { } |
Optional. Number of Telegram Stars that must be paid to transfer the gift; omitted if the bot cannot transfer the gift.
Definition at line 13558 of file Types.h.
The documentation for this struct was generated from the following file: