tgbot-cpp
|
Represents a chat member that has some additional privileges. More...
#include <ChatMemberAdministrator.h>
Public Types | |
typedef std::shared_ptr< ChatMemberAdministrator > | Ptr |
Public Types inherited from TgBot::ChatMember | |
typedef std::shared_ptr< ChatMember > | Ptr |
Public Member Functions | |
ChatMemberAdministrator () | |
Public Member Functions inherited from TgBot::ChatMember | |
ChatMember () | |
virtual | ~ChatMember () |
Public Attributes | |
bool | canBeEdited |
True, if the bot is allowed to edit administrator privileges of that user. | |
bool | isAnonymous |
True, if the user's presence in the chat is hidden. | |
bool | canManageChat |
True, if the administrator can access the chat event log, chat statistics, message statistics in channels, see channel members, see anonymous administrators in supergroups and ignore slow mode. | |
bool | canDeleteMessages |
True, if the administrator can delete messages of other users. | |
bool | canManageVideoChats |
True, if the administrator can manage video chats. | |
bool | canRestrictMembers |
True, if the administrator can restrict, ban or unban chat members. | |
bool | canPromoteMembers |
True, if the administrator can add new administrators with a subset of their own privileges or demote administrators that they have promoted, directly or indirectly (promoted by administrators that were appointed by the user) | |
bool | canChangeInfo |
True, if the user is allowed to change the chat title, photo and other settings. | |
bool | canInviteUsers |
True, if the user is allowed to invite new users to the chat. | |
bool | canPostMessages |
Optional. True, if the administrator can post in the channel; channels only. | |
bool | canEditMessages |
Optional. True, if the administrator can edit messages of other users and can pin messages; channels only. | |
bool | canPinMessages |
Optional. True, if the user is allowed to pin messages; groups and supergroups only. | |
bool | canManageTopics |
Optional. True, if the user is allowed to create, rename, close, and reopen forum topics; supergroups only. | |
std::string | customTitle |
Optional. Custom title for this user. | |
Public Attributes inherited from TgBot::ChatMember | |
std::string | status |
The member's status in the chat. | |
User::Ptr | user |
Information about the user. | |
Static Public Attributes | |
static const std::string | STATUS |
Represents a chat member that has some additional privileges.
Definition at line 16 of file ChatMemberAdministrator.h.
typedef std::shared_ptr<ChatMemberAdministrator> TgBot::ChatMemberAdministrator::Ptr |
Definition at line 20 of file ChatMemberAdministrator.h.
|
inline |
Definition at line 22 of file ChatMemberAdministrator.h.
bool TgBot::ChatMemberAdministrator::canBeEdited |
True, if the bot is allowed to edit administrator privileges of that user.
Definition at line 29 of file ChatMemberAdministrator.h.
bool TgBot::ChatMemberAdministrator::canChangeInfo |
True, if the user is allowed to change the chat title, photo and other settings.
Definition at line 66 of file ChatMemberAdministrator.h.
bool TgBot::ChatMemberAdministrator::canDeleteMessages |
True, if the administrator can delete messages of other users.
Definition at line 46 of file ChatMemberAdministrator.h.
bool TgBot::ChatMemberAdministrator::canEditMessages |
Optional. True, if the administrator can edit messages of other users and can pin messages; channels only.
Definition at line 81 of file ChatMemberAdministrator.h.
bool TgBot::ChatMemberAdministrator::canInviteUsers |
True, if the user is allowed to invite new users to the chat.
Definition at line 71 of file ChatMemberAdministrator.h.
bool TgBot::ChatMemberAdministrator::canManageChat |
True, if the administrator can access the chat event log, chat statistics, message statistics in channels, see channel members, see anonymous administrators in supergroups and ignore slow mode.
Implied by any other administrator privilege
Definition at line 41 of file ChatMemberAdministrator.h.
bool TgBot::ChatMemberAdministrator::canManageTopics |
Optional. True, if the user is allowed to create, rename, close, and reopen forum topics; supergroups only.
Definition at line 91 of file ChatMemberAdministrator.h.
bool TgBot::ChatMemberAdministrator::canManageVideoChats |
True, if the administrator can manage video chats.
Definition at line 51 of file ChatMemberAdministrator.h.
bool TgBot::ChatMemberAdministrator::canPinMessages |
Optional. True, if the user is allowed to pin messages; groups and supergroups only.
Definition at line 86 of file ChatMemberAdministrator.h.
bool TgBot::ChatMemberAdministrator::canPostMessages |
Optional. True, if the administrator can post in the channel; channels only.
Definition at line 76 of file ChatMemberAdministrator.h.
bool TgBot::ChatMemberAdministrator::canPromoteMembers |
True, if the administrator can add new administrators with a subset of their own privileges or demote administrators that they have promoted, directly or indirectly (promoted by administrators that were appointed by the user)
Definition at line 61 of file ChatMemberAdministrator.h.
bool TgBot::ChatMemberAdministrator::canRestrictMembers |
True, if the administrator can restrict, ban or unban chat members.
Definition at line 56 of file ChatMemberAdministrator.h.
std::string TgBot::ChatMemberAdministrator::customTitle |
Optional. Custom title for this user.
Definition at line 96 of file ChatMemberAdministrator.h.
bool TgBot::ChatMemberAdministrator::isAnonymous |
True, if the user's presence in the chat is hidden.
Definition at line 34 of file ChatMemberAdministrator.h.
|
static |
Definition at line 18 of file ChatMemberAdministrator.h.