tgbot-cpp
Loading...
Searching...
No Matches
ChatAdministratorRights.h
Go to the documentation of this file.
1#ifndef TGBOT_CHATADMINISTRATORRIGHTS_H
2#define TGBOT_CHATADMINISTRATORRIGHTS_H
3
4#include <memory>
5
6namespace TgBot {
7
14public:
15 typedef std::shared_ptr<ChatAdministratorRights> Ptr;
16
21
28
33
38
43
48
53
58
63
68
73
78};
79}
80
81#endif //TGBOT_CHATADMINISTRATORRIGHTS_H
Represents the rights of an administrator in a chat.
bool canChangeInfo
True, if the user is allowed to change the chat title, photo and other settings.
bool canManageVideoChats
True, if the administrator can manage video chats.
bool canManageTopics
Optional. True, if the user is allowed to create, rename, close, and reopen forum topics; supergroups...
bool canEditMessages
Optional. True, if the administrator can edit messages of other users and can pin messages; channels ...
bool canPinMessages
Optional. True, if the user is allowed to pin messages; groups and supergroups only.
bool canPostMessages
Optional. True, if the administrator can post in the channel; channels only.
bool canInviteUsers
True, if the user is allowed to invite new users to the chat.
std::shared_ptr< ChatAdministratorRights > Ptr
bool canPromoteMembers
True, if the administrator can add new administrators with a subset of their own privileges or demote...
bool canDeleteMessages
True, if the administrator can delete messages of other users.
bool canManageChat
True, if the administrator can access the chat event log, chat statistics, message statistics in chan...
bool isAnonymous
True, if the user's presence in the chat is hidden.
bool canRestrictMembers
True, if the administrator can restrict, ban or unban chat members.
Definition Api.h:39