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

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 16 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 53 of file ChatAdministratorRights.h.

◆ canDeleteMessages

bool TgBot::ChatAdministratorRights::canDeleteMessages

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

Definition at line 33 of file ChatAdministratorRights.h.

◆ canDeleteStories

bool TgBot::ChatAdministratorRights::canDeleteStories

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

Definition at line 73 of file ChatAdministratorRights.h.

◆ canEditMessages

bool TgBot::ChatAdministratorRights::canEditMessages

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

Definition at line 83 of file ChatAdministratorRights.h.

◆ canEditStories

bool TgBot::ChatAdministratorRights::canEditStories

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

Definition at line 68 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 58 of file ChatAdministratorRights.h.

◆ canManageChat

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

◆ canManageTopics

bool TgBot::ChatAdministratorRights::canManageTopics

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

Definition at line 93 of file ChatAdministratorRights.h.

◆ canManageVideoChats

bool TgBot::ChatAdministratorRights::canManageVideoChats

True, if the administrator can manage video chats.

Definition at line 38 of file ChatAdministratorRights.h.

◆ canPinMessages

bool TgBot::ChatAdministratorRights::canPinMessages

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

Definition at line 88 of file ChatAdministratorRights.h.

◆ canPostMessages

bool TgBot::ChatAdministratorRights::canPostMessages

Optional. True, if the administrator can post messages in the channel, or access channel statistics; for channels only.

Definition at line 78 of file ChatAdministratorRights.h.

◆ canPostStories

bool TgBot::ChatAdministratorRights::canPostStories

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

Definition at line 63 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 48 of file ChatAdministratorRights.h.

◆ canRestrictMembers

bool TgBot::ChatAdministratorRights::canRestrictMembers

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

Definition at line 43 of file ChatAdministratorRights.h.

◆ isAnonymous

bool TgBot::ChatAdministratorRights::isAnonymous

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

Definition at line 21 of file ChatAdministratorRights.h.


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