tgbotxx
1.1.6.9
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 ()=default | |
ChatMemberAdministrator (const nl::json &json) | |
nl::json | toJson () const |
Serializes this object to JSON. More... | |
void | fromJson (const nl::json &json) |
Deserializes this object from JSON. More... | |
Public Member Functions inherited from tgbotxx::ChatMember | |
ChatMember ()=default | |
ChatMember (const nl::json &json) | |
nl::json | toJson () const |
Serializes this object to JSON. More... | |
void | fromJson (const nl::json &json) |
Deserializes this object from JSON. More... | |
Public Attributes | |
bool | canBeEdited {} |
True, if the bot is allowed to edit administrator privileges of that user. More... | |
bool | isAnonymous {} |
True, if the user's presence in the chat is hidden. More... | |
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. More... | |
bool | canDeleteMessages {} |
True, if the administrator can delete messages of other users. More... | |
bool | canManageVideoChats {} |
True, if the administrator can manage video chats. More... | |
bool | canRestrictMembers {} |
True, if the administrator can restrict, ban or unban chat members. More... | |
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) More... | |
bool | canChangeInfo {} |
True, if the user is allowed to change the chat title, photo and other settings. More... | |
bool | canInviteUsers {} |
True, if the user is allowed to invite new users to the chat. More... | |
bool | canPostMessages {} |
Optional. True, if the administrator can post messages in the channel; channels only. More... | |
bool | canEditMessages {} |
Optional. True, if the administrator can edit messages of other users and can pin messages; channels only. More... | |
bool | canPinMessages {} |
Optional. True, if the user is allowed to pin messages; groups and supergroups only. More... | |
bool | canPostStories {} |
Optional. True, if the administrator can post stories in the channel; channels only. More... | |
bool | canEditStories {} |
Optional. True, if the administrator can edit stories posted by other users; channels only. More... | |
bool | canDeleteStories {} |
Optional. True, if the administrator can delete stories posted by other users; channels only. More... | |
bool | canManageTopics {} |
Optional. True, if the user is allowed to create, rename, close, and reopen forum topics; supergroups only. More... | |
std::string | customTitle |
Optional. Custom title for this user. More... | |
Public Attributes inherited from tgbotxx::ChatMember | |
std::string | status |
The member's status in the chat. More... | |
Ptr< User > | user |
Information about the user. More... | |
Represents a chat member that has some additional privileges. https://core.telegram.org/bots/api#chatmemberadministrator.
Definition at line 78 of file ChatMember.hpp.
|
default |
|
inlineexplicit |
Definition at line 80 of file ChatMember.hpp.
|
inline |
Deserializes this object from JSON.
Definition at line 165 of file ChatMember.hpp.
|
inline |
Serializes this object to JSON.
Definition at line 142 of file ChatMember.hpp.
bool tgbotxx::ChatMemberAdministrator::canBeEdited {} |
True, if the bot is allowed to edit administrator privileges of that user.
Definition at line 86 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 110 of file ChatMember.hpp.
bool tgbotxx::ChatMemberAdministrator::canDeleteMessages {} |
True, if the administrator can delete messages of other users.
Definition at line 97 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 131 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 119 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 128 of file ChatMember.hpp.
bool tgbotxx::ChatMemberAdministrator::canInviteUsers {} |
True, if the user is allowed to invite new users to the chat.
Definition at line 113 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 94 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 134 of file ChatMember.hpp.
bool tgbotxx::ChatMemberAdministrator::canManageVideoChats {} |
True, if the administrator can manage video chats.
Definition at line 100 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 122 of file ChatMember.hpp.
bool tgbotxx::ChatMemberAdministrator::canPostMessages {} |
Optional. True, if the administrator can post messages in the channel; channels only.
Definition at line 116 of file ChatMember.hpp.
bool tgbotxx::ChatMemberAdministrator::canPostStories {} |
Optional. True, if the administrator can post stories in the channel; channels only.
Definition at line 125 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 107 of file ChatMember.hpp.
bool tgbotxx::ChatMemberAdministrator::canRestrictMembers {} |
True, if the administrator can restrict, ban or unban chat members.
Definition at line 103 of file ChatMember.hpp.
std::string tgbotxx::ChatMemberAdministrator::customTitle |
Optional. Custom title for this user.
Definition at line 137 of file ChatMember.hpp.
bool tgbotxx::ChatMemberAdministrator::isAnonymous {} |
True, if the user's presence in the chat is hidden.
Definition at line 89 of file ChatMember.hpp.