tgbot-cpp
Loading...
Searching...
No Matches
Giveaway.h
Go to the documentation of this file.
1#ifndef TGBOT_GIVEAWAY_H
2#define TGBOT_GIVEAWAY_H
3
4#include "tgbot/types/Chat.h"
5
6#include <cstdint>
7#include <memory>
8#include <string>
9#include <vector>
10
11namespace TgBot {
12
18class Giveaway {
19
20public:
21 typedef std::shared_ptr<Giveaway> Ptr;
22
26 std::vector<Chat::Ptr> chats;
27
31 std::uint32_t winnersSelectionDate;
32
36 std::int32_t winnerCount;
37
42
47
51 std::string prizeDescription;
52
59 std::vector<std::string> countryCodes;
60
65};
66}
67
68#endif //TGBOT_GIVEAWAY_H
This object represents a message about a scheduled giveaway.
Definition Giveaway.h:18
bool hasPublicWinners
Optional. True, if the list of giveaway winners will be visible to everyone.
Definition Giveaway.h:46
std::vector< std::string > countryCodes
Optional. A list of two-letter ISO 3166-1 alpha-2 country codes indicating the countries from which e...
Definition Giveaway.h:59
std::int32_t winnerCount
The number of users which are supposed to be selected as winners of the giveaway.
Definition Giveaway.h:36
std::shared_ptr< Giveaway > Ptr
Definition Giveaway.h:21
std::string prizeDescription
Optional. Description of additional giveaway prize.
Definition Giveaway.h:51
std::uint32_t winnersSelectionDate
Point in time (Unix timestamp) when winners of the giveaway will be selected.
Definition Giveaway.h:31
std::vector< Chat::Ptr > chats
The list of chats which the user must join to participate in the giveaway.
Definition Giveaway.h:26
bool onlyNewMembers
Optional. True, if only users who join the chats after the giveaway started should be eligible to win...
Definition Giveaway.h:41
std::int32_t premiumSubscriptionMonthCount
Optional. The number of months the Telegram Premium subscription won from the giveaway will be active...
Definition Giveaway.h:64
Definition Api.h:40