tgbotxx 1.1.9.2
Telegram Bot C++ Library
Loading...
Searching...
No Matches
tgbotxx::GiveawayCompleted Struct Reference

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< MessagegiveawayMessage
 Optional. Message with the giveaway that was completed.
 
bool isStarGiveaway {}
 Optional. True, if the giveaway is a Telegram Star giveaway.
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ GiveawayCompleted() [1/2]

tgbotxx::GiveawayCompleted::GiveawayCompleted ( )
default

◆ GiveawayCompleted() [2/2]

tgbotxx::GiveawayCompleted::GiveawayCompleted ( const nl::json &  json)
inlineexplicit

Definition at line 10 of file GiveawayCompleted.hpp.

Member Function Documentation

◆ fromJson()

void tgbotxx::GiveawayCompleted::fromJson ( const nl::json &  json)
inline

Deserializes this object from JSON.

Definition at line 37 of file GiveawayCompleted.hpp.

◆ toJson()

nl::json tgbotxx::GiveawayCompleted::toJson ( ) const
inline

Serializes this object to JSON.

Returns
JSON representation of this object

Definition at line 28 of file GiveawayCompleted.hpp.

Member Data Documentation

◆ giveawayMessage

Ptr<Message> tgbotxx::GiveawayCompleted::giveawayMessage

Optional. Message with the giveaway that was completed.

Definition at line 21 of file GiveawayCompleted.hpp.

◆ isStarGiveaway

bool tgbotxx::GiveawayCompleted::isStarGiveaway {}

Optional. True, if the giveaway is a Telegram Star giveaway.

Definition at line 24 of file GiveawayCompleted.hpp.

◆ unclaimedPrizeCount

std::int32_t tgbotxx::GiveawayCompleted::unclaimedPrizeCount {}

Optional. Number of undistributed prizes.

Definition at line 18 of file GiveawayCompleted.hpp.

◆ winnerCount

std::int32_t tgbotxx::GiveawayCompleted::winnerCount {}

Number of winners in the giveaway.

Definition at line 15 of file GiveawayCompleted.hpp.


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