tgbot-cpp
Loading...
Searching...
No Matches
TgBot::GiveawayCompleted Struct Reference

This object represents a service message about the completion of a giveaway without public winners. More...

#include <Types.h>

Public Types

using Ptr = std::shared_ptr<GiveawayCompleted>

Public Attributes

std::int32_t winnerCount { }
 Number of winners in the giveaway.
std::optional< std::int32_t > unclaimedPrizeCount { }
 Optional. Number of undistributed prizes.
std::shared_ptr< MessagegiveawayMessage { }
 Optional. Message with the giveaway that was completed, if it wasn't deleted.
std::optional< bool > isStarGiveaway { }
 Optional. True, if the giveaway is a Telegram Star giveaway. Otherwise, currently, the giveaway is a Telegram Premium giveaway.

Detailed Description

This object represents a service message about the completion of a giveaway without public winners.

Definition at line 4173 of file Types.h.

Member Typedef Documentation

◆ Ptr

Definition at line 4174 of file Types.h.

Member Data Documentation

◆ giveawayMessage

std::shared_ptr<Message> TgBot::GiveawayCompleted::giveawayMessage { }

Optional. Message with the giveaway that was completed, if it wasn't deleted.

Definition at line 4189 of file Types.h.

◆ isStarGiveaway

std::optional<bool> TgBot::GiveawayCompleted::isStarGiveaway { }

Optional. True, if the giveaway is a Telegram Star giveaway. Otherwise, currently, the giveaway is a Telegram Premium giveaway.

Definition at line 4195 of file Types.h.

◆ unclaimedPrizeCount

std::optional<std::int32_t> TgBot::GiveawayCompleted::unclaimedPrizeCount { }

Optional. Number of undistributed prizes.

Definition at line 4184 of file Types.h.

◆ winnerCount

std::int32_t TgBot::GiveawayCompleted::winnerCount { }

Number of winners in the giveaway.

Definition at line 4179 of file Types.h.


The documentation for this struct was generated from the following file: