tgbotxx  1.1.6.9
Telegram Bot C++ Library
tgbotxx::ChatMemberRestricted Struct Reference

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>

Inheritance diagram for tgbotxx::ChatMemberRestricted:
tgbotxx::ChatMember

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< Useruser
 Information about the user. More...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ ChatMemberRestricted() [1/2]

tgbotxx::ChatMemberRestricted::ChatMemberRestricted ( )
default

◆ ChatMemberRestricted() [2/2]

tgbotxx::ChatMemberRestricted::ChatMemberRestricted ( const nl::json &  json)
inlineexplicit

Definition at line 202 of file ChatMember.hpp.

Member Function Documentation

◆ fromJson()

void tgbotxx::ChatMemberRestricted::fromJson ( const nl::json &  json)
inline

Deserializes this object from JSON.

Definition at line 280 of file ChatMember.hpp.

◆ toJson()

nl::json tgbotxx::ChatMemberRestricted::toJson ( ) const
inline

Serializes this object to JSON.

Returns
JSON representation of this object

Definition at line 258 of file ChatMember.hpp.

Member Data Documentation

◆ canAddWebPagePreviews

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.

◆ canChangeInfo

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.

◆ canInviteUsers

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.

◆ canManageTopics

bool tgbotxx::ChatMemberRestricted::canManageTopics {}

True, if the user is allowed to create forum topics.

Definition at line 250 of file ChatMember.hpp.

◆ canPinMessages

bool tgbotxx::ChatMemberRestricted::canPinMessages {}

True, if the user is allowed to pin messages.

Definition at line 247 of file ChatMember.hpp.

◆ canSendAudios

bool tgbotxx::ChatMemberRestricted::canSendAudios {}

True, if the user is allowed to send audios.

Definition at line 214 of file ChatMember.hpp.

◆ canSendDocuments

bool tgbotxx::ChatMemberRestricted::canSendDocuments {}

True, if the user is allowed to send documents.

Definition at line 217 of file ChatMember.hpp.

◆ canSendMessages

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.

◆ canSendOtherMessages

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.

◆ canSendPhotos

bool tgbotxx::ChatMemberRestricted::canSendPhotos {}

True, if the user is allowed to send photos.

Definition at line 220 of file ChatMember.hpp.

◆ canSendPolls

bool tgbotxx::ChatMemberRestricted::canSendPolls {}

True, if the user is allowed to send polls.

Definition at line 232 of file ChatMember.hpp.

◆ canSendVideoNotes

bool tgbotxx::ChatMemberRestricted::canSendVideoNotes {}

True, if the user is allowed to send video notes.

Definition at line 226 of file ChatMember.hpp.

◆ canSendVideos

bool tgbotxx::ChatMemberRestricted::canSendVideos {}

True, if the user is allowed to send videos.

Definition at line 223 of file ChatMember.hpp.

◆ canSendVoiceNotes

bool tgbotxx::ChatMemberRestricted::canSendVoiceNotes {}

True, if the user is allowed to send voice notes.

Definition at line 229 of file ChatMember.hpp.

◆ isMember

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.

◆ untilDate

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.


The documentation for this struct was generated from the following file: