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, get boost list, see hidden supergroup and channel members, report spam messages 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, or access supergroup statistics. | |
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 | canPostStories |
True, if the administrator can post stories to the chat. | |
bool | canEditStories |
True, if the administrator can edit stories posted by other users. | |
bool | canDeleteStories |
True, if the administrator can delete stories posted by other users. | |
bool | canPostMessages |
Optional. True, if the administrator can post messages in the channel, or access channel statistics; for channels only. | |
bool | canEditMessages |
Optional. True, if the administrator can edit messages of other users and can pin messages; for channels only. | |
bool | canPinMessages |
Optional. True, if the user is allowed to pin messages; for groups and supergroups only. | |
bool | canManageTopics |
Optional. True, if the user is allowed to create, rename, close, and reopen forum topics; for 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 21 of file ChatMemberAdministrator.h.
|
inline |
Definition at line 23 of file ChatMemberAdministrator.h.
bool TgBot::ChatMemberAdministrator::canBeEdited |
True, if the bot is allowed to edit administrator privileges of that user.
Definition at line 30 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 67 of file ChatMemberAdministrator.h.
bool TgBot::ChatMemberAdministrator::canDeleteMessages |
True, if the administrator can delete messages of other users.
Definition at line 47 of file ChatMemberAdministrator.h.
bool TgBot::ChatMemberAdministrator::canDeleteStories |
True, if the administrator can delete stories posted by other users.
Definition at line 87 of file ChatMemberAdministrator.h.
bool TgBot::ChatMemberAdministrator::canEditMessages |
Optional. True, if the administrator can edit messages of other users and can pin messages; for channels only.
Definition at line 97 of file ChatMemberAdministrator.h.
bool TgBot::ChatMemberAdministrator::canEditStories |
True, if the administrator can edit stories posted by other users.
Definition at line 82 of file ChatMemberAdministrator.h.
bool TgBot::ChatMemberAdministrator::canInviteUsers |
True, if the user is allowed to invite new users to the chat.
Definition at line 72 of file ChatMemberAdministrator.h.
bool TgBot::ChatMemberAdministrator::canManageChat |
True, if the administrator can access the chat event log, get boost list, see hidden supergroup and channel members, report spam messages and ignore slow mode.
Implied by any other administrator privilege.
Definition at line 42 of file ChatMemberAdministrator.h.
bool TgBot::ChatMemberAdministrator::canManageTopics |
Optional. True, if the user is allowed to create, rename, close, and reopen forum topics; for supergroups only.
Definition at line 107 of file ChatMemberAdministrator.h.
bool TgBot::ChatMemberAdministrator::canManageVideoChats |
True, if the administrator can manage video chats.
Definition at line 52 of file ChatMemberAdministrator.h.
bool TgBot::ChatMemberAdministrator::canPinMessages |
Optional. True, if the user is allowed to pin messages; for groups and supergroups only.
Definition at line 102 of file ChatMemberAdministrator.h.
bool TgBot::ChatMemberAdministrator::canPostMessages |
Optional. True, if the administrator can post messages in the channel, or access channel statistics; for channels only.
Definition at line 92 of file ChatMemberAdministrator.h.
bool TgBot::ChatMemberAdministrator::canPostStories |
True, if the administrator can post stories to the chat.
Definition at line 77 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 62 of file ChatMemberAdministrator.h.
bool TgBot::ChatMemberAdministrator::canRestrictMembers |
True, if the administrator can restrict, ban or unban chat members, or access supergroup statistics.
Definition at line 57 of file ChatMemberAdministrator.h.
std::string TgBot::ChatMemberAdministrator::customTitle |
Optional. Custom title for this user.
Definition at line 112 of file ChatMemberAdministrator.h.
bool TgBot::ChatMemberAdministrator::isAnonymous |
True, if the user's presence in the chat is hidden.
Definition at line 35 of file ChatMemberAdministrator.h.
|
static |
Definition at line 19 of file ChatMemberAdministrator.h.