|
tgbotxx 1.2.9.2
Telegram Bot C++ Library
|
Represents a chat member that has some additional privileges. https://core.telegram.org/bots/api#chatmemberadministrator. More...
#include <ChatMember.hpp>
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< User > | user |
| Information about the user. | |
Represents a chat member that has some additional privileges. https://core.telegram.org/bots/api#chatmemberadministrator.
Definition at line 79 of file ChatMember.hpp.
|
inline |
Definition at line 80 of file ChatMember.hpp.
|
inlineexplicit |
Definition at line 83 of file ChatMember.hpp.
Deserializes this object from JSON.
Reimplemented from tgbotxx::ChatMember.
Definition at line 167 of file ChatMember.hpp.
|
inlineoverridevirtual |
Serializes this object to JSON.
Reimplemented from tgbotxx::ChatMember.
Definition at line 144 of file ChatMember.hpp.
| 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.
| 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.
| bool tgbotxx::ChatMemberAdministrator::canDeleteMessages {} |
True, if the administrator can delete messages of other users.
Definition at line 99 of file ChatMember.hpp.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| bool tgbotxx::ChatMemberAdministrator::canManageVideoChats {} |
True, if the administrator can manage video chats.
Definition at line 102 of file ChatMember.hpp.
| 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.
| 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.
| 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.
| 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.
| bool tgbotxx::ChatMemberAdministrator::canRestrictMembers {} |
True, if the administrator can restrict, ban or unban chat members.
Definition at line 105 of file ChatMember.hpp.
| std::string tgbotxx::ChatMemberAdministrator::customTitle |
Optional. Custom title for this user.
Definition at line 139 of file ChatMember.hpp.
| bool tgbotxx::ChatMemberAdministrator::isAnonymous {} |
True, if the user's presence in the chat is hidden.
Definition at line 91 of file ChatMember.hpp.