Describes a service message about a regular gift that was sent or received.
More...
#include <Types.h>
|
| std::shared_ptr< Gift > | gift { } |
| | Information about the gift.
|
| 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 > | convertStarCount { } |
| | Optional. Number of Telegram Stars that can be claimed by the receiver by converting the gift; omitted if conversion to Telegram Stars is impossible.
|
| std::optional< std::int32_t > | prepaidUpgradeStarCount { } |
| | Optional. Number of Telegram Stars that were prepaid for the ability to upgrade the gift.
|
| std::optional< bool > | isUpgradeSeparate { } |
| | Optional. True, if the gift's upgrade was purchased after the gift was sent.
|
| std::optional< bool > | canBeUpgraded { } |
| | Optional. True, if the gift can be upgraded to a unique gift.
|
| 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::int32_t > | uniqueGiftNumber { } |
| | Optional. Unique number reserved for this gift when upgraded. See the number field in UniqueGift.
|
Describes a service message about a regular gift that was sent or received.
Definition at line 3741 of file Types.h.
◆ Ptr
◆ canBeUpgraded
| std::optional<bool> TgBot::GiftInfo::canBeUpgraded { } |
Optional. True, if the gift can be upgraded to a unique gift.
Definition at line 3769 of file Types.h.
◆ convertStarCount
| std::optional<std::int32_t> TgBot::GiftInfo::convertStarCount { } |
Optional. Number of Telegram Stars that can be claimed by the receiver by converting the gift; omitted if conversion to Telegram Stars is impossible.
Definition at line 3757 of file Types.h.
◆ entities
| std::optional<std::vector<std::shared_ptr<MessageEntity> > > TgBot::GiftInfo::entities { } |
Optional. Special entities that appear in the text.
Definition at line 3777 of file Types.h.
◆ gift
| std::shared_ptr<Gift> TgBot::GiftInfo::gift { } |
Information about the gift.
Definition at line 3747 of file Types.h.
◆ isPrivate
| std::optional<bool> TgBot::GiftInfo::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 3782 of file Types.h.
◆ isUpgradeSeparate
| std::optional<bool> TgBot::GiftInfo::isUpgradeSeparate { } |
Optional. True, if the gift's upgrade was purchased after the gift was sent.
Definition at line 3765 of file Types.h.
◆ ownedGiftId
| std::optional<std::string> TgBot::GiftInfo::ownedGiftId { } |
Optional. Unique identifier of the received gift for the bot; only present for gifts received on behalf of business accounts.
Definition at line 3752 of file Types.h.
◆ prepaidUpgradeStarCount
| std::optional<std::int32_t> TgBot::GiftInfo::prepaidUpgradeStarCount { } |
Optional. Number of Telegram Stars that were prepaid for the ability to upgrade the gift.
Definition at line 3761 of file Types.h.
◆ text
| std::optional<std::string> TgBot::GiftInfo::text { } |
Optional. Text of the message that was added to the gift.
Definition at line 3773 of file Types.h.
◆ uniqueGiftNumber
| std::optional<std::int32_t> TgBot::GiftInfo::uniqueGiftNumber { } |
Optional. Unique number reserved for this gift when upgraded. See the number field in UniqueGift.
Definition at line 3787 of file Types.h.
The documentation for this struct was generated from the following file: