1#ifndef TGBOT_CHATMEMBERADMINISTRATOR_H
2#define TGBOT_CHATMEMBERADMINISTRATOR_H
21 typedef std::shared_ptr<ChatMemberAdministrator>
Ptr;
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...
static const std::string STATUS
bool isAnonymous
True, if the user's presence in the chat is hidden.
ChatMemberAdministrator()
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.
std::string status
The member's status in the chat.