blob: 1e0f25103ccb365276a8eea35a5e7bc10ecb82b8 (
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
|
#ifndef TGBOT_CHATMEMBERBANNED_H
#define TGBOT_CHATMEMBERBANNED_H
#include "tgbot/types/ChatMember.h"
#include <cstdint>
#include <memory>
namespace TgBot {
/**
* @brief Represents a chat member that was banned in the chat and can't return to the chat or view chat messages.
*
* @ingroup types
*/
class ChatMemberBanned : public ChatMember {
public:
static const std::string STATUS;
typedef std::shared_ptr<ChatMemberBanned> Ptr;
ChatMemberBanned() {
this->status = STATUS;
}
/**
* @brief Date when restrictions will be lifted for this user; Unix time.
*
* If 0, then the user is banned forever
*/
std::uint32_t untilDate;
};
}
#endif //TGBOT_CHATMEMBERBANNED_H
|