tgbotxx
1.1.6.9
Telegram Bot C++ Library
|
Represents the rights of an administrator in a chat. https://core.telegram.org/bots/api#chatadministratorrights. More...
#include <ChatAdministratorRights.hpp>
Public Member Functions | |
ChatAdministratorRights ()=default | |
ChatAdministratorRights (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 | 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, boost list in channels, see channel members, report spam messages, 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, or access supergroup statistics. 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, or access channel statistics; 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... | |
Represents the rights of an administrator in a chat. https://core.telegram.org/bots/api#chatadministratorrights.
Definition at line 7 of file ChatAdministratorRights.hpp.
|
default |
|
inlineexplicit |
Definition at line 9 of file ChatAdministratorRights.hpp.
|
inline |
Deserializes this object from JSON.
Definition at line 85 of file ChatAdministratorRights.hpp.
|
inline |
Serializes this object to JSON.
Definition at line 64 of file ChatAdministratorRights.hpp.
bool tgbotxx::ChatAdministratorRights::canChangeInfo {} |
True, if the user is allowed to change the chat title, photo and other settings.
Definition at line 35 of file ChatAdministratorRights.hpp.
bool tgbotxx::ChatAdministratorRights::canDeleteMessages {} |
True, if the administrator can delete messages of other users.
Definition at line 22 of file ChatAdministratorRights.hpp.
bool tgbotxx::ChatAdministratorRights::canDeleteStories {} |
Optional. True, if the administrator can delete stories posted by other users; channels only.
Definition at line 56 of file ChatAdministratorRights.hpp.
bool tgbotxx::ChatAdministratorRights::canEditMessages {} |
Optional. True, if the administrator can edit messages of other users and can pin messages; channels only.
Definition at line 44 of file ChatAdministratorRights.hpp.
bool tgbotxx::ChatAdministratorRights::canEditStories {} |
Optional. True, if the administrator can edit stories posted by other users; channels only.
Definition at line 53 of file ChatAdministratorRights.hpp.
bool tgbotxx::ChatAdministratorRights::canInviteUsers {} |
True, if the user is allowed to invite new users to the chat.
Definition at line 38 of file ChatAdministratorRights.hpp.
bool tgbotxx::ChatAdministratorRights::canManageChat {} |
True, if the administrator can access the chat event log, boost list in channels, see channel members, report spam messages, see anonymous administrators in supergroups and ignore slow mode. Implied by any other administrator privilege.
Definition at line 19 of file ChatAdministratorRights.hpp.
bool tgbotxx::ChatAdministratorRights::canManageTopics {} |
Optional. True, if the user is allowed to create, rename, close, and reopen forum topics; supergroups only.
Definition at line 59 of file ChatAdministratorRights.hpp.
bool tgbotxx::ChatAdministratorRights::canManageVideoChats {} |
True, if the administrator can manage video chats.
Definition at line 25 of file ChatAdministratorRights.hpp.
bool tgbotxx::ChatAdministratorRights::canPinMessages {} |
Optional. True, if the user is allowed to pin messages; groups and supergroups only.
Definition at line 47 of file ChatAdministratorRights.hpp.
bool tgbotxx::ChatAdministratorRights::canPostMessages {} |
Optional. True, if the administrator can post messages in the channel, or access channel statistics; channels only.
Definition at line 41 of file ChatAdministratorRights.hpp.
bool tgbotxx::ChatAdministratorRights::canPostStories {} |
Optional. True, if the administrator can post stories in the channel; channels only.
Definition at line 50 of file ChatAdministratorRights.hpp.
bool tgbotxx::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 32 of file ChatAdministratorRights.hpp.
bool tgbotxx::ChatAdministratorRights::canRestrictMembers {} |
True, if the administrator can restrict, ban or unban chat members, or access supergroup statistics.
Definition at line 28 of file ChatAdministratorRights.hpp.
bool tgbotxx::ChatAdministratorRights::isAnonymous {} |
True, if the user's presence in the chat is hidden.
Definition at line 14 of file ChatAdministratorRights.hpp.