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, 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
 

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 21 of file ChatMemberAdministrator.h.

Constructor & Destructor Documentation

◆ ChatMemberAdministrator()

TgBot::ChatMemberAdministrator::ChatMemberAdministrator ( )
inline

Definition at line 23 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 30 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 67 of file ChatMemberAdministrator.h.

◆ canDeleteMessages

bool TgBot::ChatMemberAdministrator::canDeleteMessages

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

Definition at line 47 of file ChatMemberAdministrator.h.

◆ canDeleteStories

bool TgBot::ChatMemberAdministrator::canDeleteStories

True, if the administrator can delete stories posted by other users.

Definition at line 87 of file ChatMemberAdministrator.h.

◆ canEditMessages

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.

◆ canEditStories

bool TgBot::ChatMemberAdministrator::canEditStories

True, if the administrator can edit stories posted by other users.

Definition at line 82 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 72 of file ChatMemberAdministrator.h.

◆ canManageChat

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.

◆ canManageTopics

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.

◆ canManageVideoChats

bool TgBot::ChatMemberAdministrator::canManageVideoChats

True, if the administrator can manage video chats.

Definition at line 52 of file ChatMemberAdministrator.h.

◆ canPinMessages

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.

◆ canPostMessages

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.

◆ canPostStories

bool TgBot::ChatMemberAdministrator::canPostStories

True, if the administrator can post stories to the chat.

Definition at line 77 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 62 of file ChatMemberAdministrator.h.

◆ canRestrictMembers

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.

◆ customTitle

std::string TgBot::ChatMemberAdministrator::customTitle

Optional. Custom title for this user.

Definition at line 112 of file ChatMemberAdministrator.h.

◆ isAnonymous

bool TgBot::ChatMemberAdministrator::isAnonymous

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

Definition at line 35 of file ChatMemberAdministrator.h.

◆ STATUS

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

Definition at line 19 of file ChatMemberAdministrator.h.


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