tgbot-cpp
Loading...
Searching...
No Matches
ChatBoost.h
Go to the documentation of this file.
1#ifndef TGBOT_CHATBOOST_H
2#define TGBOT_CHATBOOST_H
3
5
6#include <cstdint>
7#include <memory>
8#include <string>
9
10namespace TgBot {
11
17class ChatBoost {
18
19public:
20 typedef std::shared_ptr<ChatBoost> Ptr;
21
25 std::string boostId;
26
30 std::uint32_t addDate;
31
35 std::uint32_t expirationDate;
36
41};
42}
43
44#endif //TGBOT_CHATBOOST_H
This object contains information about a chat boost.
Definition ChatBoost.h:17
std::string boostId
Unique identifier of the boost.
Definition ChatBoost.h:25
std::uint32_t expirationDate
Point in time (Unix timestamp) when the boost will automatically expire, unless the booster's Telegra...
Definition ChatBoost.h:35
std::uint32_t addDate
Point in time (Unix timestamp) when the chat was boosted.
Definition ChatBoost.h:30
std::shared_ptr< ChatBoost > Ptr
Definition ChatBoost.h:20
ChatBoostSource::Ptr source
Source of the added boost.
Definition ChatBoost.h:40
std::shared_ptr< ChatBoostSource > Ptr
Definition Api.h:40