tgbot-cpp
ChatMember.h
Go to the documentation of this file.
1 //
2 // Created by Konstantin Kukin on 26/12/16.
3 // Edit by JellyBrick on 27/05/18.
4 //
5 
6 #ifndef TGBOT_CHATMEMBER_H
7 #define TGBOT_CHATMEMBER_H
8 
9 #include <memory>
10 #include <string>
11 
12 #include "tgbot/types/User.h"
13 
14 namespace TgBot {
15 
20 class ChatMember {
21 public:
22  typedef std::shared_ptr<ChatMember> Ptr;
23 
28 
32  std::string status;
33 
37  uint64_t untilDate;
38 
42  bool canBeEdited = false;
43 
47  bool canChangeInfo = false;
48 
52  bool canPostMessages = false;
53 
57  bool canEditMessages = false;
58 
62  bool canDeleteMessages = false;
63 
67  bool canInviteUsers = false;
68 
72  bool canRestrictMembers = false;
73 
77  bool canPinMessages = false;
78 
82  bool canPromoteMembers = false;
83 
87  bool canSendMessages = false;
88 
92  bool canSendMediaMessages = false;
93 
97  bool canSendOtherMessages = false;
98 
102  bool canAddWebPagePreviews = false;
103 };
104 }
105 
106 #endif //TGBOT_CHATMEMBER_H
bool canSendOtherMessages
Definition: ChatMember.h:97
Definition: Api.h:46
bool canAddWebPagePreviews
Definition: ChatMember.h:102
std::string status
Definition: ChatMember.h:32
bool canSendMediaMessages
Definition: ChatMember.h:92
User::Ptr user
Definition: ChatMember.h:27
bool canPromoteMembers
Definition: ChatMember.h:82
bool canRestrictMembers
Definition: ChatMember.h:72
bool canDeleteMessages
Definition: ChatMember.h:62
std::shared_ptr< ChatMember > Ptr
Definition: ChatMember.h:22
uint64_t untilDate
Definition: ChatMember.h:37
std::shared_ptr< User > Ptr
Definition: User.h:38