tgbot-cpp
|
The boost was obtained by the creation of a Telegram Premium giveaway. More...
#include <ChatBoostSourceGiveaway.h>
Public Types | |
typedef std::shared_ptr< ChatBoostSourceGiveaway > | Ptr |
Public Types inherited from TgBot::ChatBoostSource | |
typedef std::shared_ptr< ChatBoostSource > | Ptr |
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 |
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.
typedef std::shared_ptr<ChatBoostSourceGiveaway> TgBot::ChatBoostSourceGiveaway::Ptr |
Definition at line 23 of file ChatBoostSourceGiveaway.h.
|
inline |
Definition at line 25 of file ChatBoostSourceGiveaway.h.
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.
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.
|
static |
Definition at line 21 of file ChatBoostSourceGiveaway.h.