|
tgbotxx 1.1.9.2
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. | |
| void | fromJson (const nl::json &json) |
| Deserializes this object from JSON. | |
Public Member Functions inherited from tgbotxx::ChatMember | |
| ChatMember ()=default | |
| ChatMember (const nl::json &json) | |
| virtual | ~ChatMember ()=default |
| nl::json | toJson () const |
| Serializes this object to JSON. | |
| void | fromJson (const nl::json &json) |
| Deserializes this object from JSON. | |
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::time_t | untilDate {} |
| Date when restrictions will be lifted for this user; Unix time. If 0, then the user is restricted forever. | |
Public Attributes inherited from tgbotxx::ChatMember | |
| std::string | status |
| The member's status in the chat. | |
| Ptr< User > | user |
| Information about the user. | |
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.