tgbot-cpp
Loading...
Searching...
No Matches
TgBot::ChatBoostSourceGiveaway Class Reference

The boost was obtained by the creation of a Telegram Premium giveaway. More...

#include <ChatBoostSourceGiveaway.h>

Inheritance diagram for TgBot::ChatBoostSourceGiveaway:
TgBot::ChatBoostSource

Public Types

typedef std::shared_ptr< ChatBoostSourceGiveawayPtr
 
- Public Types inherited from TgBot::ChatBoostSource
typedef std::shared_ptr< ChatBoostSourcePtr
 

Public Member Functions

 ChatBoostSourceGiveaway ()
 
- Public Member Functions inherited from TgBot::ChatBoostSource
 ChatBoostSource ()
 
virtual ~ChatBoostSource ()
 

Public Attributes

std::int32_t giveawayMessageId
 Identifier of a message in the chat with the giveaway; the message could have been deleted already.
 
bool isUnclaimed
 Optional. True, if the giveaway was completed, but there was no user to win the prize.
 
- Public Attributes inherited from TgBot::ChatBoostSource
std::string source
 Source of the boost.
 
User::Ptr user
 User.
 

Static Public Attributes

static const std::string SOURCE
 

Detailed Description

The boost was obtained by the creation of a Telegram Premium giveaway.

This boosts the chat 4 times for the duration of the corresponding Telegram Premium subscription.

Definition at line 18 of file ChatBoostSourceGiveaway.h.

Member Typedef Documentation

◆ Ptr

Definition at line 23 of file ChatBoostSourceGiveaway.h.

Constructor & Destructor Documentation

◆ ChatBoostSourceGiveaway()

TgBot::ChatBoostSourceGiveaway::ChatBoostSourceGiveaway ( )
inline

Definition at line 25 of file ChatBoostSourceGiveaway.h.

Member Data Documentation

◆ giveawayMessageId

std::int32_t TgBot::ChatBoostSourceGiveaway::giveawayMessageId

Identifier of a message in the chat with the giveaway; the message could have been deleted already.

May be 0 if the message isn't sent yet.

Definition at line 34 of file ChatBoostSourceGiveaway.h.

◆ isUnclaimed

bool TgBot::ChatBoostSourceGiveaway::isUnclaimed

Optional. True, if the giveaway was completed, but there was no user to win the prize.

Definition at line 39 of file ChatBoostSourceGiveaway.h.

◆ SOURCE

const std::string TgBot::ChatBoostSourceGiveaway::SOURCE
static

Definition at line 21 of file ChatBoostSourceGiveaway.h.


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