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

Represents the rights of an administrator in a chat. More...

#include <ChatAdministratorRights.h>

Public Types

typedef std::shared_ptr< ChatAdministratorRightsPtr
 

Public Attributes

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.
 

Detailed Description

Represents the rights of an administrator in a chat.

Definition at line 13 of file ChatAdministratorRights.h.

Member Typedef Documentation

◆ Ptr

Definition at line 15 of file ChatAdministratorRights.h.

Member Data Documentation

◆ canChangeInfo

bool TgBot::ChatAdministratorRights::canChangeInfo

True, if the user is allowed to change the chat title, photo and other settings.

Definition at line 52 of file ChatAdministratorRights.h.

◆ canDeleteMessages

bool TgBot::ChatAdministratorRights::canDeleteMessages

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

Definition at line 32 of file ChatAdministratorRights.h.

◆ canEditMessages

bool TgBot::ChatAdministratorRights::canEditMessages

Optional. True, if the administrator can edit messages of other users and can pin messages; channels only.

Definition at line 67 of file ChatAdministratorRights.h.

◆ canInviteUsers

bool TgBot::ChatAdministratorRights::canInviteUsers

True, if the user is allowed to invite new users to the chat.

Definition at line 57 of file ChatAdministratorRights.h.

◆ canManageChat

bool TgBot::ChatAdministratorRights::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 27 of file ChatAdministratorRights.h.

◆ canManageTopics

bool TgBot::ChatAdministratorRights::canManageTopics

Optional. True, if the user is allowed to create, rename, close, and reopen forum topics; supergroups only.

Definition at line 77 of file ChatAdministratorRights.h.

◆ canManageVideoChats

bool TgBot::ChatAdministratorRights::canManageVideoChats

True, if the administrator can manage video chats.

Definition at line 37 of file ChatAdministratorRights.h.

◆ canPinMessages

bool TgBot::ChatAdministratorRights::canPinMessages

Optional. True, if the user is allowed to pin messages; groups and supergroups only.

Definition at line 72 of file ChatAdministratorRights.h.

◆ canPostMessages

bool TgBot::ChatAdministratorRights::canPostMessages

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

Definition at line 62 of file ChatAdministratorRights.h.

◆ canPromoteMembers

bool TgBot::ChatAdministratorRights::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 47 of file ChatAdministratorRights.h.

◆ canRestrictMembers

bool TgBot::ChatAdministratorRights::canRestrictMembers

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

Definition at line 42 of file ChatAdministratorRights.h.

◆ isAnonymous

bool TgBot::ChatAdministratorRights::isAnonymous

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

Definition at line 20 of file ChatAdministratorRights.h.


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