Arguments for Api::giftPremiumSubscription.
More...
#include <Types.h>
|
| std::int32_t | monthCount { } |
| | Number of months the Telegram Premium subscription will be active for the user; must be one of 3, 6, or 12.
|
| std::int32_t | starCount { } |
| | Number of Telegram Stars to pay for the Telegram Premium subscription; must be 1000 for 3 months, 1500 for 6 months, and 2500 for 12 months.
|
| std::int64_t | userId { } |
| | Unique identifier of the target user who will receive a Telegram Premium subscription.
|
| std::string | text = "" |
| | Text that will be shown along with the service message about the subscription; 0-128 characters.
|
| std::vector< std::shared_ptr< MessageEntity > > | textEntities = { } |
| | A JSON-serialized list of special entities that appear in the gift text. It can be specified instead of text_parse_mode. Entities other than “bold”, “italic”, “underline”, “strikethrough”, “spoiler”, “custom_emoji”, and “date_time” are ignored.
|
| std::string | textParseMode = "" |
| | Mode for parsing entities in the text. See formatting options for more details. Entities other than “bold”, “italic”, “underline”, “strikethrough”, “spoiler”, “custom_emoji”, and “date_time” are ignored.
|
Arguments for Api::giftPremiumSubscription.
Definition at line 16858 of file Types.h.
◆ monthCount
| std::int32_t TgBot::GiftPremiumSubscriptionArgs::monthCount { } |
Number of months the Telegram Premium subscription will be active for the user; must be one of 3, 6, or 12.
Definition at line 16863 of file Types.h.
◆ starCount
| std::int32_t TgBot::GiftPremiumSubscriptionArgs::starCount { } |
Number of Telegram Stars to pay for the Telegram Premium subscription; must be 1000 for 3 months, 1500 for 6 months, and 2500 for 12 months.
Definition at line 16869 of file Types.h.
◆ text
| std::string TgBot::GiftPremiumSubscriptionArgs::text = "" |
Text that will be shown along with the service message about the subscription; 0-128 characters.
Definition at line 16881 of file Types.h.
◆ textEntities
| std::vector<std::shared_ptr<MessageEntity> > TgBot::GiftPremiumSubscriptionArgs::textEntities = { } |
A JSON-serialized list of special entities that appear in the gift text. It can be specified instead of text_parse_mode. Entities other than “bold”, “italic”, “underline”, “strikethrough”, “spoiler”, “custom_emoji”, and “date_time” are ignored.
Definition at line 16889 of file Types.h.
◆ textParseMode
| std::string TgBot::GiftPremiumSubscriptionArgs::textParseMode = "" |
Mode for parsing entities in the text. See formatting options for more details. Entities other than “bold”, “italic”, “underline”, “strikethrough”, “spoiler”, “custom_emoji”, and “date_time” are ignored.
Definition at line 16896 of file Types.h.
◆ userId
| std::int64_t TgBot::GiftPremiumSubscriptionArgs::userId { } |
Unique identifier of the target user who will receive a Telegram Premium subscription.
Definition at line 16875 of file Types.h.
The documentation for this struct was generated from the following file: