tgbot-cpp
|
Represents a chat member that is under certain restrictions in the chat. More...
#include <ChatMemberRestricted.h>
Public Types | |
typedef std::shared_ptr< ChatMemberRestricted > | Ptr |
Public Types inherited from TgBot::ChatMember | |
typedef std::shared_ptr< ChatMember > | Ptr |
Public Member Functions | |
ChatMemberRestricted () | |
Public Member Functions inherited from TgBot::ChatMember | |
ChatMember () | |
virtual | ~ChatMember () |
Public Attributes | |
bool | isMember |
True, if the user is a member of the chat at the moment of the request. | |
bool | canSendMessages |
True, if the user is allowed to send text messages, contacts, invoices, locations and venues. | |
bool | canSendAudios |
True, if the user is allowed to send audios. | |
bool | canSendDocuments |
True, if the user is allowed to send documents. | |
bool | canSendPhotos |
True, if the user is allowed to send photos. | |
bool | canSendVideos |
True, if the user is allowed to send videos. | |
bool | canSendVideoNotes |
True, if the user is allowed to send video notes. | |
bool | canSendVoiceNotes |
True, if the user is allowed to send voice notes. | |
bool | canSendPolls |
True, if the user is allowed to send polls. | |
bool | canSendOtherMessages |
True, if the user is allowed to send animations, games, stickers and use inline bots. | |
bool | canAddWebPagePreviews |
True, if the user is allowed to add web page previews to their messages. | |
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 | canPinMessages |
True, if the user is allowed to pin messages. | |
bool | canManageTopics |
True, if the user is allowed to create forum topics. | |
std::uint32_t | untilDate |
Date when restrictions will be lifted for this user; unix time. | |
Public Attributes inherited from TgBot::ChatMember | |
std::string | status |
The member's status in the chat. | |
User::Ptr | user |
Information about the user. | |
Static Public Attributes | |
static const std::string | STATUS |
Represents a chat member that is under certain restrictions in the chat.
Supergroups only.
Definition at line 18 of file ChatMemberRestricted.h.
typedef std::shared_ptr<ChatMemberRestricted> TgBot::ChatMemberRestricted::Ptr |
Definition at line 22 of file ChatMemberRestricted.h.
|
inline |
Definition at line 24 of file ChatMemberRestricted.h.
bool TgBot::ChatMemberRestricted::canAddWebPagePreviews |
True, if the user is allowed to add web page previews to their messages.
Definition at line 81 of file ChatMemberRestricted.h.
bool TgBot::ChatMemberRestricted::canChangeInfo |
True, if the user is allowed to change the chat title, photo and other settings.
Definition at line 86 of file ChatMemberRestricted.h.
bool TgBot::ChatMemberRestricted::canInviteUsers |
True, if the user is allowed to invite new users to the chat.
Definition at line 91 of file ChatMemberRestricted.h.
bool TgBot::ChatMemberRestricted::canManageTopics |
True, if the user is allowed to create forum topics.
Definition at line 101 of file ChatMemberRestricted.h.
bool TgBot::ChatMemberRestricted::canPinMessages |
True, if the user is allowed to pin messages.
Definition at line 96 of file ChatMemberRestricted.h.
bool TgBot::ChatMemberRestricted::canSendAudios |
True, if the user is allowed to send audios.
Definition at line 41 of file ChatMemberRestricted.h.
bool TgBot::ChatMemberRestricted::canSendDocuments |
True, if the user is allowed to send documents.
Definition at line 46 of file ChatMemberRestricted.h.
bool TgBot::ChatMemberRestricted::canSendMessages |
True, if the user is allowed to send text messages, contacts, invoices, locations and venues.
Definition at line 36 of file ChatMemberRestricted.h.
bool TgBot::ChatMemberRestricted::canSendOtherMessages |
True, if the user is allowed to send animations, games, stickers and use inline bots.
Definition at line 76 of file ChatMemberRestricted.h.
bool TgBot::ChatMemberRestricted::canSendPhotos |
True, if the user is allowed to send photos.
Definition at line 51 of file ChatMemberRestricted.h.
bool TgBot::ChatMemberRestricted::canSendPolls |
True, if the user is allowed to send polls.
Definition at line 71 of file ChatMemberRestricted.h.
bool TgBot::ChatMemberRestricted::canSendVideoNotes |
True, if the user is allowed to send video notes.
Definition at line 61 of file ChatMemberRestricted.h.
bool TgBot::ChatMemberRestricted::canSendVideos |
True, if the user is allowed to send videos.
Definition at line 56 of file ChatMemberRestricted.h.
bool TgBot::ChatMemberRestricted::canSendVoiceNotes |
True, if the user is allowed to send voice notes.
Definition at line 66 of file ChatMemberRestricted.h.
bool TgBot::ChatMemberRestricted::isMember |
True, if the user is a member of the chat at the moment of the request.
Definition at line 31 of file ChatMemberRestricted.h.
|
static |
Definition at line 20 of file ChatMemberRestricted.h.
std::uint32_t TgBot::ChatMemberRestricted::untilDate |
Date when restrictions will be lifted for this user; unix time.
If 0, then the user is restricted forever
Definition at line 108 of file ChatMemberRestricted.h.