tgbot-cpp
Loading...
Searching...
No Matches
GiveawayWinners.h
Go to the documentation of this file.
1#ifndef TGBOT_GIVEAWAYWINNERS_H
2#define TGBOT_GIVEAWAYWINNERS_H
3
4#include "tgbot/types/Chat.h"
5#include "tgbot/types/User.h"
6
7#include <cstdint>
8#include <memory>
9#include <string>
10#include <vector>
11
12namespace TgBot {
13
20
21public:
22 typedef std::shared_ptr<GiveawayWinners> Ptr;
23
28
32 std::int32_t giveawayMessageId;
33
37 std::uint32_t winnersSelectionDate;
38
42 std::int32_t winnerCount;
43
47 std::vector<User::Ptr> winners;
48
52 std::int32_t additionalChatCount;
53
58
62 std::int32_t unclaimedPrizeCount;
63
68
73
77 std::string prizeDescription;
78};
79}
80
81#endif //TGBOT_GIVEAWAYWINNERS_H
std::shared_ptr< Chat > Ptr
Definition Chat.h:31
This object represents a message about the completion of a giveaway with public winners.
Chat::Ptr chat
The chat that created the giveaway.
std::shared_ptr< GiveawayWinners > Ptr
std::int32_t giveawayMessageId
Identifier of the message with the giveaway in the chat.
std::string prizeDescription
Optional. Description of additional giveaway prize.
bool wasRefunded
Optional. True, if the giveaway was canceled because the payment for it was refunded.
std::int32_t winnerCount
Total number of winners in the giveaway.
bool onlyNewMembers
Optional. True, if only users who had joined the chats after the giveaway started were eligible to wi...
std::int32_t additionalChatCount
Optional. The number of other chats the user had to join in order to be eligible for the giveaway.
std::vector< User::Ptr > winners
List of up to 100 winners of the giveaway.
std::int32_t unclaimedPrizeCount
Optional. Number of undistributed prizes.
std::uint32_t winnersSelectionDate
Point in time (Unix timestamp) when winners of the giveaway were selected.
std::int32_t premiumSubscriptionMonthCount
Optional. The number of months the Telegram Premium subscription won from the giveaway will be active...
Definition Api.h:40