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

This object represents a service message about the creation of a scheduled giveaway. https://core.telegram.org/bots/api#giveawaycreated. More...

#include <GiveawayCreated.hpp>

Public Member Functions

 GiveawayCreated ()=default
 
 GiveawayCreated (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 prizeStarCount {}
 Optional. The number of Telegram Stars to be split between giveaway winners.
 

Detailed Description

This object represents a service message about the creation of a scheduled giveaway. https://core.telegram.org/bots/api#giveawaycreated.

Definition at line 7 of file GiveawayCreated.hpp.

Constructor & Destructor Documentation

◆ GiveawayCreated() [1/2]

tgbotxx::GiveawayCreated::GiveawayCreated ( )
default

◆ GiveawayCreated() [2/2]

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

Definition at line 9 of file GiveawayCreated.hpp.

Member Function Documentation

◆ fromJson()

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

Deserializes this object from JSON.

Definition at line 24 of file GiveawayCreated.hpp.

◆ toJson()

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

Serializes this object to JSON.

Returns
JSON representation of this object

Definition at line 18 of file GiveawayCreated.hpp.

Member Data Documentation

◆ prizeStarCount

std::int32_t tgbotxx::GiveawayCreated::prizeStarCount {}

Optional. The number of Telegram Stars to be split between giveaway winners.

Definition at line 14 of file GiveawayCreated.hpp.


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