tgbot-cpp
Loading...
Searching...
No Matches
TgBot::ChatMemberAdministrator Class Reference

Represents a chat member that has some additional privileges. More...

#include <ChatMemberAdministrator.h>

Inheritance diagram for TgBot::ChatMemberAdministrator:
TgBot::ChatMember

Public Types

typedef std::shared_ptr< ChatMemberAdministratorPtr
 
- Public Types inherited from TgBot::ChatMember
typedef std::shared_ptr< ChatMemberPtr
 

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
 

Detailed Description

Represents a chat member that has some additional privileges.

Definition at line 16 of file ChatMemberAdministrator.h.

Member Typedef Documentation

◆ Ptr

Definition at line 20 of file ChatMemberAdministrator.h.

Constructor & Destructor Documentation

◆ ChatMemberAdministrator()

TgBot::ChatMemberAdministrator::ChatMemberAdministrator ( )
inline

Definition at line 22 of file ChatMemberAdministrator.h.

Member Data Documentation

◆ canBeEdited

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.

◆ canChangeInfo

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.

◆ canDeleteMessages

bool TgBot::ChatMemberAdministrator::canDeleteMessages

True, if the administrator can delete messages of other users.

Definition at line 46 of file ChatMemberAdministrator.h.

◆ canEditMessages

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.

◆ canInviteUsers

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.

◆ canManageChat

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.

◆ canManageTopics

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.

◆ canManageVideoChats

bool TgBot::ChatMemberAdministrator::canManageVideoChats

True, if the administrator can manage video chats.

Definition at line 51 of file ChatMemberAdministrator.h.

◆ canPinMessages

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.

◆ canPostMessages

bool TgBot::ChatMemberAdministrator::canPostMessages

Optional. True, if the administrator can post in the channel; channels only.

Definition at line 76 of file ChatMemberAdministrator.h.

◆ canPromoteMembers

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.

◆ canRestrictMembers

bool TgBot::ChatMemberAdministrator::canRestrictMembers

True, if the administrator can restrict, ban or unban chat members.

Definition at line 56 of file ChatMemberAdministrator.h.

◆ customTitle

std::string TgBot::ChatMemberAdministrator::customTitle

Optional. Custom title for this user.

Definition at line 96 of file ChatMemberAdministrator.h.

◆ isAnonymous

bool TgBot::ChatMemberAdministrator::isAnonymous

True, if the user's presence in the chat is hidden.

Definition at line 34 of file ChatMemberAdministrator.h.

◆ STATUS

const std::string TgBot::ChatMemberAdministrator::STATUS
static

Definition at line 18 of file ChatMemberAdministrator.h.


The documentation for this class was generated from the following file: