tgbotxx
1.1.6.9
Telegram Bot C++ Library
|
Represents a chat member that is under certain restrictions in the chat. Supergroups only. https://core.telegram.org/bots/api#chatmemberrestricted. More...
#include <ChatMember.hpp>
Public Member Functions | |
ChatMemberRestricted ()=default | |
ChatMemberRestricted (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 | isMember {} |
True, if the user is a member of the chat at the moment of the request. More... | |
bool | canSendMessages {} |
True, if the user is allowed to send text messages, contacts, invoices, locations and venues. More... | |
bool | canSendAudios {} |
True, if the user is allowed to send audios. More... | |
bool | canSendDocuments {} |
True, if the user is allowed to send documents. More... | |
bool | canSendPhotos {} |
True, if the user is allowed to send photos. More... | |
bool | canSendVideos {} |
True, if the user is allowed to send videos. More... | |
bool | canSendVideoNotes {} |
True, if the user is allowed to send video notes. More... | |
bool | canSendVoiceNotes {} |
True, if the user is allowed to send voice notes. More... | |
bool | canSendPolls {} |
True, if the user is allowed to send polls. More... | |
bool | canSendOtherMessages {} |
True, if the user is allowed to send animations, games, stickers and use inline bots. More... | |
bool | canAddWebPagePreviews {} |
True, if the user is allowed to add web page previews to their messages. 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 | canPinMessages {} |
True, if the user is allowed to pin messages. More... | |
bool | canManageTopics {} |
True, if the user is allowed to create forum topics. More... | |
std::time_t | untilDate {} |
Date when restrictions will be lifted for this user; Unix time. If 0, then the user is restricted forever. 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 is under certain restrictions in the chat. Supergroups only. https://core.telegram.org/bots/api#chatmemberrestricted.
Definition at line 200 of file ChatMember.hpp.
|
default |
|
inlineexplicit |
Definition at line 202 of file ChatMember.hpp.
|
inline |
Deserializes this object from JSON.
Definition at line 280 of file ChatMember.hpp.
|
inline |
Serializes this object to JSON.
Definition at line 258 of file ChatMember.hpp.
bool tgbotxx::ChatMemberRestricted::canAddWebPagePreviews {} |
True, if the user is allowed to add web page previews to their messages.
Definition at line 238 of file ChatMember.hpp.
bool tgbotxx::ChatMemberRestricted::canChangeInfo {} |
True, if the user is allowed to change the chat title, photo and other settings.
Definition at line 241 of file ChatMember.hpp.
bool tgbotxx::ChatMemberRestricted::canInviteUsers {} |
True, if the user is allowed to invite new users to the chat.
Definition at line 244 of file ChatMember.hpp.
bool tgbotxx::ChatMemberRestricted::canManageTopics {} |
True, if the user is allowed to create forum topics.
Definition at line 250 of file ChatMember.hpp.
bool tgbotxx::ChatMemberRestricted::canPinMessages {} |
True, if the user is allowed to pin messages.
Definition at line 247 of file ChatMember.hpp.
bool tgbotxx::ChatMemberRestricted::canSendAudios {} |
True, if the user is allowed to send audios.
Definition at line 214 of file ChatMember.hpp.
bool tgbotxx::ChatMemberRestricted::canSendDocuments {} |
True, if the user is allowed to send documents.
Definition at line 217 of file ChatMember.hpp.
bool tgbotxx::ChatMemberRestricted::canSendMessages {} |
True, if the user is allowed to send text messages, contacts, invoices, locations and venues.
Definition at line 211 of file ChatMember.hpp.
bool tgbotxx::ChatMemberRestricted::canSendOtherMessages {} |
True, if the user is allowed to send animations, games, stickers and use inline bots.
Definition at line 235 of file ChatMember.hpp.
bool tgbotxx::ChatMemberRestricted::canSendPhotos {} |
True, if the user is allowed to send photos.
Definition at line 220 of file ChatMember.hpp.
bool tgbotxx::ChatMemberRestricted::canSendPolls {} |
True, if the user is allowed to send polls.
Definition at line 232 of file ChatMember.hpp.
bool tgbotxx::ChatMemberRestricted::canSendVideoNotes {} |
True, if the user is allowed to send video notes.
Definition at line 226 of file ChatMember.hpp.
bool tgbotxx::ChatMemberRestricted::canSendVideos {} |
True, if the user is allowed to send videos.
Definition at line 223 of file ChatMember.hpp.
bool tgbotxx::ChatMemberRestricted::canSendVoiceNotes {} |
True, if the user is allowed to send voice notes.
Definition at line 229 of file ChatMember.hpp.
bool tgbotxx::ChatMemberRestricted::isMember {} |
True, if the user is a member of the chat at the moment of the request.
Definition at line 208 of file ChatMember.hpp.
std::time_t tgbotxx::ChatMemberRestricted::untilDate {} |
Date when restrictions will be lifted for this user; Unix time. If 0, then the user is restricted forever.
Definition at line 253 of file ChatMember.hpp.