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, giveaways, giveaway winners, 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 23 of file ChatMemberRestricted.h.
|
inline |
Definition at line 25 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 82 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 87 of file ChatMemberRestricted.h.
bool TgBot::ChatMemberRestricted::canInviteUsers |
True, if the user is allowed to invite new users to the chat.
Definition at line 92 of file ChatMemberRestricted.h.
bool TgBot::ChatMemberRestricted::canManageTopics |
True, if the user is allowed to create forum topics.
Definition at line 102 of file ChatMemberRestricted.h.
bool TgBot::ChatMemberRestricted::canPinMessages |
True, if the user is allowed to pin messages.
Definition at line 97 of file ChatMemberRestricted.h.
bool TgBot::ChatMemberRestricted::canSendAudios |
True, if the user is allowed to send audios.
Definition at line 42 of file ChatMemberRestricted.h.
bool TgBot::ChatMemberRestricted::canSendDocuments |
True, if the user is allowed to send documents.
Definition at line 47 of file ChatMemberRestricted.h.
bool TgBot::ChatMemberRestricted::canSendMessages |
True, if the user is allowed to send text messages, contacts, giveaways, giveaway winners, invoices, locations and venues.
Definition at line 37 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 77 of file ChatMemberRestricted.h.
bool TgBot::ChatMemberRestricted::canSendPhotos |
True, if the user is allowed to send photos.
Definition at line 52 of file ChatMemberRestricted.h.
bool TgBot::ChatMemberRestricted::canSendPolls |
True, if the user is allowed to send polls.
Definition at line 72 of file ChatMemberRestricted.h.
bool TgBot::ChatMemberRestricted::canSendVideoNotes |
True, if the user is allowed to send video notes.
Definition at line 62 of file ChatMemberRestricted.h.
bool TgBot::ChatMemberRestricted::canSendVideos |
True, if the user is allowed to send videos.
Definition at line 57 of file ChatMemberRestricted.h.
bool TgBot::ChatMemberRestricted::canSendVoiceNotes |
True, if the user is allowed to send voice notes.
Definition at line 67 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 32 of file ChatMemberRestricted.h.
|
static |
Definition at line 21 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 109 of file ChatMemberRestricted.h.