tgbot-cpp
Loading...
Searching...
No Matches
ChatMemberAdministrator.h
Go to the documentation of this file.
1#ifndef TGBOT_CHATMEMBERADMINISTRATOR_H
2#define TGBOT_CHATMEMBERADMINISTRATOR_H
3
5
6#include <memory>
7#include <string>
8
9namespace TgBot {
10
17
18public:
19 static const std::string STATUS;
20
21 typedef std::shared_ptr<ChatMemberAdministrator> Ptr;
22
26
31
36
43
48
53
58
63
68
73
78
83
88
93
98
103
108
112 std::string customTitle;
113};
114}
115
116#endif //TGBOT_CHATMEMBERADMINISTRATOR_H
Represents a chat member that has some additional privileges.
bool canInviteUsers
True, if the user is allowed to invite new users to the chat.
bool canManageVideoChats
True, if the administrator can manage video chats.
std::shared_ptr< ChatMemberAdministrator > Ptr
bool canPromoteMembers
True, if the administrator can add new administrators with a subset of their own privileges or demote...
bool isAnonymous
True, if the user's presence in the chat is hidden.
bool canPostMessages
Optional. True, if the administrator can post messages in the channel, or access channel statistics; ...
bool canEditStories
True, if the administrator can edit stories posted by other users.
bool canManageChat
True, if the administrator can access the chat event log, get boost list, see hidden supergroup and c...
bool canPinMessages
Optional. True, if the user is allowed to pin messages; for groups and supergroups only.
bool canChangeInfo
True, if the user is allowed to change the chat title, photo and other settings.
bool canPostStories
True, if the administrator can post stories to the chat.
std::string customTitle
Optional. Custom title for this user.
bool canBeEdited
True, if the bot is allowed to edit administrator privileges of that user.
bool canRestrictMembers
True, if the administrator can restrict, ban or unban chat members, or access supergroup statistics.
bool canDeleteStories
True, if the administrator can delete stories posted by other users.
bool canDeleteMessages
True, if the administrator can delete messages of other users.
bool canEditMessages
Optional. True, if the administrator can edit messages of other users and can pin messages; for chann...
bool canManageTopics
Optional. True, if the user is allowed to create, rename, close, and reopen forum topics; for supergr...
This abstract class is base of all chat members.
Definition ChatMember.h:18
std::string status
The member's status in the chat.
Definition ChatMember.h:30
Definition Api.h:40