blob: 8f86ab7fbfeec6a2e5da30244c0fd8a3a984d2d8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
#ifndef TGBOT_CHATBOOSTSOURCEGIVEAWAY_H
#define TGBOT_CHATBOOSTSOURCEGIVEAWAY_H
#include "tgbot/types/ChatBoostSource.h"
#include <cstdint>
#include <memory>
namespace TgBot {
/**
* @brief 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.
*
* @ingroup types
*/
class ChatBoostSourceGiveaway : public ChatBoostSource {
public:
static const std::string SOURCE;
typedef std::shared_ptr<ChatBoostSourceGiveaway> Ptr;
ChatBoostSourceGiveaway() {
this->source = SOURCE;
}
/**
* @brief 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.
*/
std::int32_t giveawayMessageId;
/**
* @brief Optional. True, if the giveaway was completed, but there was no user to win the prize
*/
bool isUnclaimed;
};
}
#endif //TGBOT_CHATBOOSTSOURCEGIVEAWAY_H
|