1#ifndef TGBOT_CHATADMINISTRATORRIGHTS_H
2#define TGBOT_CHATADMINISTRATORRIGHTS_H
16 typedef std::shared_ptr<ChatAdministratorRights>
Ptr;
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 canEditStories
True, if the administrator can edit stories posted by other users.
bool canManageTopics
Optional. True, if the user is allowed to create, rename, close, and reopen forum topics; for supergr...
bool canEditMessages
Optional. True, if the administrator can edit messages of other users and can pin messages; for chann...
bool canPinMessages
Optional. True, if the user is allowed to pin messages; for groups and supergroups only.
bool canPostMessages
Optional. True, if the administrator can post messages in the channel, or access channel statistics; ...
bool canDeleteStories
True, if the administrator can delete stories posted by other users.
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, get boost list, see hidden supergroup and c...
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, or access supergroup statistics.
bool canPostStories
True, if the administrator can post stories to the chat.