tgbot-cpp
|
This object contains information about one member of the chat. More...
#include <ChatMember.h>
Public Types | |
typedef std::shared_ptr< ChatMember > | Ptr |
Public Attributes | |
User::Ptr | user |
Information about the user. More... | |
std::string | status |
The member's status in the chat. Can be “creator”, “administrator”, “member”, “restricted”, “left” or “kicked” More... | |
uint64_t | untilDate |
Optional. Restricted and kicked only. Date when restrictions will be lifted for this user, unix time. More... | |
bool | canBeEdited = false |
Optional. Administrators only. True, if the bot is allowed to edit administrator privileges of that user. More... | |
bool | canChangeInfo = false |
Optional. Administrators only. True, if the administrator can change the chat title, photo and other settings. More... | |
bool | canPostMessages = false |
Optional. Administrators only. True, if the administrator can post in the channel, channels only. More... | |
bool | canEditMessages = false |
Optional. Administrators only. True, if the administrator can edit messages of other users and can pin messages, channels only. More... | |
bool | canDeleteMessages = false |
Optional. Administrators only. True, if the administrator can delete messages of other users. More... | |
bool | canInviteUsers = false |
Optional. Administrators only. True, if the administrator can invite new users to the chat. More... | |
bool | canRestrictMembers = false |
Optional. Administrators only. True, if the administrator can restrict, ban or unban chat members. More... | |
bool | canPinMessages = false |
Optional. Administrators only. True, if the administrator can pin messages, supergroups only. More... | |
bool | canPromoteMembers = false |
Optional. Administrators only. True, if the administrator can add new administrators with a subset of his own privileges or demote administrators that he has promoted, directly or indirectly (promoted by administrators that were appointed by the user). More... | |
bool | canSendMessages = false |
Optional. Restricted only. True, if the user can send text messages, contacts, locations and venues. More... | |
bool | canSendMediaMessages = false |
Optional. Restricted only. True, if the user can send audios, documents, photos, videos, video notes and voice notes, implies can_send_messages. More... | |
bool | canSendOtherMessages = false |
Optional. Restricted only. True, if the user can send animations, games, stickers and use inline bots, implies can_send_media_messages. More... | |
bool | canAddWebPagePreviews = false |
Optional. Restricted only. True, if user may add web page previews to his messages, implies can_send_media_messages. More... | |
This object contains information about one member of the chat.
Definition at line 20 of file ChatMember.h.
typedef std::shared_ptr<ChatMember> TgBot::ChatMember::Ptr |
Definition at line 22 of file ChatMember.h.
bool TgBot::ChatMember::canAddWebPagePreviews = false |
Optional. Restricted only. True, if user may add web page previews to his messages, implies can_send_media_messages.
Definition at line 102 of file ChatMember.h.
bool TgBot::ChatMember::canBeEdited = false |
Optional. Administrators only. True, if the bot is allowed to edit administrator privileges of that user.
Definition at line 42 of file ChatMember.h.
bool TgBot::ChatMember::canChangeInfo = false |
Optional. Administrators only. True, if the administrator can change the chat title, photo and other settings.
Definition at line 47 of file ChatMember.h.
bool TgBot::ChatMember::canDeleteMessages = false |
Optional. Administrators only. True, if the administrator can delete messages of other users.
Definition at line 62 of file ChatMember.h.
bool TgBot::ChatMember::canEditMessages = false |
Optional. Administrators only. True, if the administrator can edit messages of other users and can pin messages, channels only.
Definition at line 57 of file ChatMember.h.
bool TgBot::ChatMember::canInviteUsers = false |
Optional. Administrators only. True, if the administrator can invite new users to the chat.
Definition at line 67 of file ChatMember.h.
bool TgBot::ChatMember::canPinMessages = false |
Optional. Administrators only. True, if the administrator can pin messages, supergroups only.
Definition at line 77 of file ChatMember.h.
bool TgBot::ChatMember::canPostMessages = false |
Optional. Administrators only. True, if the administrator can post in the channel, channels only.
Definition at line 52 of file ChatMember.h.
bool TgBot::ChatMember::canPromoteMembers = false |
Optional. Administrators only. True, if the administrator can add new administrators with a subset of his own privileges or demote administrators that he has promoted, directly or indirectly (promoted by administrators that were appointed by the user).
Definition at line 82 of file ChatMember.h.
bool TgBot::ChatMember::canRestrictMembers = false |
Optional. Administrators only. True, if the administrator can restrict, ban or unban chat members.
Definition at line 72 of file ChatMember.h.
bool TgBot::ChatMember::canSendMediaMessages = false |
Optional. Restricted only. True, if the user can send audios, documents, photos, videos, video notes and voice notes, implies can_send_messages.
Definition at line 92 of file ChatMember.h.
bool TgBot::ChatMember::canSendMessages = false |
Optional. Restricted only. True, if the user can send text messages, contacts, locations and venues.
Definition at line 87 of file ChatMember.h.
bool TgBot::ChatMember::canSendOtherMessages = false |
Optional. Restricted only. True, if the user can send animations, games, stickers and use inline bots, implies can_send_media_messages.
Definition at line 97 of file ChatMember.h.
std::string TgBot::ChatMember::status |
The member's status in the chat. Can be “creator”, “administrator”, “member”, “restricted”, “left” or “kicked”
Definition at line 32 of file ChatMember.h.
uint64_t TgBot::ChatMember::untilDate |
Optional. Restricted and kicked only. Date when restrictions will be lifted for this user, unix time.
Definition at line 37 of file ChatMember.h.
User::Ptr TgBot::ChatMember::user |
Information about the user.
Definition at line 27 of file ChatMember.h.