|
tgbotxx 1.1.9.2
Telegram Bot C++ Library
|
This object represents a service message about the completion of a giveaway without public winners. https://core.telegram.org/bots/api#giveawaycompleted. More...
#include <GiveawayCompleted.hpp>
Public Member Functions | |
| GiveawayCompleted ()=default | |
| GiveawayCompleted (const nl::json &json) | |
| nl::json | toJson () const |
| Serializes this object to JSON. | |
| void | fromJson (const nl::json &json) |
| Deserializes this object from JSON. | |
Public Attributes | |
| std::int32_t | winnerCount {} |
| Number of winners in the giveaway. | |
| std::int32_t | unclaimedPrizeCount {} |
| Optional. Number of undistributed prizes. | |
| Ptr< Message > | giveawayMessage |
| Optional. Message with the giveaway that was completed. | |
| bool | isStarGiveaway {} |
| Optional. True, if the giveaway is a Telegram Star giveaway. | |
This object represents a service message about the completion of a giveaway without public winners. https://core.telegram.org/bots/api#giveawaycompleted.
Definition at line 8 of file GiveawayCompleted.hpp.
|
default |
|
inlineexplicit |
Definition at line 10 of file GiveawayCompleted.hpp.
|
inline |
Deserializes this object from JSON.
Definition at line 37 of file GiveawayCompleted.hpp.
|
inline |
Serializes this object to JSON.
Definition at line 28 of file GiveawayCompleted.hpp.
Optional. Message with the giveaway that was completed.
Definition at line 21 of file GiveawayCompleted.hpp.
| bool tgbotxx::GiveawayCompleted::isStarGiveaway {} |
Optional. True, if the giveaway is a Telegram Star giveaway.
Definition at line 24 of file GiveawayCompleted.hpp.
| std::int32_t tgbotxx::GiveawayCompleted::unclaimedPrizeCount {} |
Optional. Number of undistributed prizes.
Definition at line 18 of file GiveawayCompleted.hpp.
| std::int32_t tgbotxx::GiveawayCompleted::winnerCount {} |
Number of winners in the giveaway.
Definition at line 15 of file GiveawayCompleted.hpp.