1#ifndef TGBOT_GIVEAWAY_H
2#define TGBOT_GIVEAWAY_H
21 typedef std::shared_ptr<Giveaway>
Ptr;
This object represents a message about a scheduled giveaway.
bool hasPublicWinners
Optional. True, if the list of giveaway winners will be visible to everyone.
std::vector< std::string > countryCodes
Optional. A list of two-letter ISO 3166-1 alpha-2 country codes indicating the countries from which e...
std::int32_t winnerCount
The number of users which are supposed to be selected as winners of the giveaway.
std::shared_ptr< Giveaway > Ptr
std::string prizeDescription
Optional. Description of additional giveaway prize.
std::uint32_t winnersSelectionDate
Point in time (Unix timestamp) when winners of the giveaway will be selected.
std::vector< Chat::Ptr > chats
The list of chats which the user must join to participate in the giveaway.
bool onlyNewMembers
Optional. True, if only users who join the chats after the giveaway started should be eligible to win...
std::int32_t premiumSubscriptionMonthCount
Optional. The number of months the Telegram Premium subscription won from the giveaway will be active...