tgbotxx 1.2.9.2
Telegram Bot C++ Library
Loading...
Searching...
No Matches
tgbotxx::ChatMemberAdministrator Struct Reference

Represents a chat member that has some additional privileges. https://core.telegram.org/bots/api#chatmemberadministrator. More...

#include <ChatMember.hpp>

Inheritance diagram for tgbotxx::ChatMemberAdministrator:
tgbotxx::ChatMember

Public Member Functions

 ChatMemberAdministrator ()
 
 ChatMemberAdministrator (const nl::json &json)
 
nl::json toJson () const override
 Serializes this object to JSON.
 
void fromJson (const nl::json &json) override
 Deserializes this object from JSON.
 
- Public Member Functions inherited from tgbotxx::ChatMember
 ChatMember ()=default
 
 ChatMember (const nl::json &json)
 
virtual ~ChatMember ()=default
 

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, boost list in channels, message statistics in channels, see channel members, see anonymous administrators in supergroups and ignore slow mode. Implied by any other administrator privilege.
 
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 messages 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 canPostStories {}
 Optional. True, if the administrator can post stories in the channel; channels only.
 
bool canEditStories {}
 Optional. True, if the administrator can edit stories posted by other users; channels only.
 
bool canDeleteStories {}
 Optional. True, if the administrator can delete stories posted by other users; channels 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 tgbotxx::ChatMember
std::string status
 The member's status in the chat.
 
Ptr< Useruser
 Information about the user.
 

Detailed Description

Represents a chat member that has some additional privileges. https://core.telegram.org/bots/api#chatmemberadministrator.

Definition at line 79 of file ChatMember.hpp.

Constructor & Destructor Documentation

◆ ChatMemberAdministrator() [1/2]

tgbotxx::ChatMemberAdministrator::ChatMemberAdministrator ( )
inline

Definition at line 80 of file ChatMember.hpp.

◆ ChatMemberAdministrator() [2/2]

tgbotxx::ChatMemberAdministrator::ChatMemberAdministrator ( const nl::json &  json)
inlineexplicit

Definition at line 83 of file ChatMember.hpp.

Member Function Documentation

◆ fromJson()

void tgbotxx::ChatMemberAdministrator::fromJson ( const nl::json &  json)
inlineoverridevirtual

Deserializes this object from JSON.

Reimplemented from tgbotxx::ChatMember.

Definition at line 167 of file ChatMember.hpp.

◆ toJson()

nl::json tgbotxx::ChatMemberAdministrator::toJson ( ) const
inlineoverridevirtual

Serializes this object to JSON.

Returns
JSON representation of this object

Reimplemented from tgbotxx::ChatMember.

Definition at line 144 of file ChatMember.hpp.

Member Data Documentation

◆ canBeEdited

bool tgbotxx::ChatMemberAdministrator::canBeEdited {}

True, if the bot is allowed to edit administrator privileges of that user.

Definition at line 88 of file ChatMember.hpp.

◆ canChangeInfo

bool tgbotxx::ChatMemberAdministrator::canChangeInfo {}

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

Definition at line 112 of file ChatMember.hpp.

◆ canDeleteMessages

bool tgbotxx::ChatMemberAdministrator::canDeleteMessages {}

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

Definition at line 99 of file ChatMember.hpp.

◆ canDeleteStories

bool tgbotxx::ChatMemberAdministrator::canDeleteStories {}

Optional. True, if the administrator can delete stories posted by other users; channels only.

Definition at line 133 of file ChatMember.hpp.

◆ canEditMessages

bool tgbotxx::ChatMemberAdministrator::canEditMessages {}

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

Definition at line 121 of file ChatMember.hpp.

◆ canEditStories

bool tgbotxx::ChatMemberAdministrator::canEditStories {}

Optional. True, if the administrator can edit stories posted by other users; channels only.

Definition at line 130 of file ChatMember.hpp.

◆ canInviteUsers

bool tgbotxx::ChatMemberAdministrator::canInviteUsers {}

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

Definition at line 115 of file ChatMember.hpp.

◆ canManageChat

bool tgbotxx::ChatMemberAdministrator::canManageChat {}

True, if the administrator can access the chat event log, chat statistics, boost list in channels, 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 96 of file ChatMember.hpp.

◆ canManageTopics

bool tgbotxx::ChatMemberAdministrator::canManageTopics {}

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

Definition at line 136 of file ChatMember.hpp.

◆ canManageVideoChats

bool tgbotxx::ChatMemberAdministrator::canManageVideoChats {}

True, if the administrator can manage video chats.

Definition at line 102 of file ChatMember.hpp.

◆ canPinMessages

bool tgbotxx::ChatMemberAdministrator::canPinMessages {}

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

Definition at line 124 of file ChatMember.hpp.

◆ canPostMessages

bool tgbotxx::ChatMemberAdministrator::canPostMessages {}

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

Definition at line 118 of file ChatMember.hpp.

◆ canPostStories

bool tgbotxx::ChatMemberAdministrator::canPostStories {}

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

Definition at line 127 of file ChatMember.hpp.

◆ canPromoteMembers

bool tgbotxx::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 109 of file ChatMember.hpp.

◆ canRestrictMembers

bool tgbotxx::ChatMemberAdministrator::canRestrictMembers {}

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

Definition at line 105 of file ChatMember.hpp.

◆ customTitle

std::string tgbotxx::ChatMemberAdministrator::customTitle

Optional. Custom title for this user.

Definition at line 139 of file ChatMember.hpp.

◆ isAnonymous

bool tgbotxx::ChatMemberAdministrator::isAnonymous {}

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

Definition at line 91 of file ChatMember.hpp.


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