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
17public:
18 static const std::string STATUS;
19
20 typedef std::shared_ptr<ChatMemberAdministrator> Ptr;
21
25
30
35
42
47
52
57
62
67
72
77
82
87
92
96 std::string customTitle;
97};
98}
99
100#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 in the channel; channels only.
bool canManageChat
True, if the administrator can access the chat event log, chat statistics, message statistics in chan...
bool canPinMessages
Optional. True, if the user is allowed to pin messages; groups and supergroups only.
bool canChangeInfo
True, if the user is allowed to change the chat title, photo and other settings.
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.
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; channels ...
bool canManageTopics
Optional. True, if the user is allowed to create, rename, close, and reopen forum topics; supergroups...
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:39