tgbot-cpp
Loading...
Searching...
No Matches
TgBot::ChatMemberRestricted Class Reference

Represents a chat member that is under certain restrictions in the chat. More...

#include <ChatMemberRestricted.h>

Inheritance diagram for TgBot::ChatMemberRestricted:
TgBot::ChatMember

Public Types

typedef std::shared_ptr< ChatMemberRestrictedPtr
 
- Public Types inherited from TgBot::ChatMember
typedef std::shared_ptr< ChatMemberPtr
 

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
 

Detailed Description

Represents a chat member that is under certain restrictions in the chat.

Supergroups only.

Definition at line 18 of file ChatMemberRestricted.h.

Member Typedef Documentation

◆ Ptr

Definition at line 23 of file ChatMemberRestricted.h.

Constructor & Destructor Documentation

◆ ChatMemberRestricted()

TgBot::ChatMemberRestricted::ChatMemberRestricted ( )
inline

Definition at line 25 of file ChatMemberRestricted.h.

Member Data Documentation

◆ canAddWebPagePreviews

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.

◆ canChangeInfo

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.

◆ canInviteUsers

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.

◆ canManageTopics

bool TgBot::ChatMemberRestricted::canManageTopics

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

Definition at line 102 of file ChatMemberRestricted.h.

◆ canPinMessages

bool TgBot::ChatMemberRestricted::canPinMessages

True, if the user is allowed to pin messages.

Definition at line 97 of file ChatMemberRestricted.h.

◆ canSendAudios

bool TgBot::ChatMemberRestricted::canSendAudios

True, if the user is allowed to send audios.

Definition at line 42 of file ChatMemberRestricted.h.

◆ canSendDocuments

bool TgBot::ChatMemberRestricted::canSendDocuments

True, if the user is allowed to send documents.

Definition at line 47 of file ChatMemberRestricted.h.

◆ canSendMessages

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.

◆ canSendOtherMessages

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.

◆ canSendPhotos

bool TgBot::ChatMemberRestricted::canSendPhotos

True, if the user is allowed to send photos.

Definition at line 52 of file ChatMemberRestricted.h.

◆ canSendPolls

bool TgBot::ChatMemberRestricted::canSendPolls

True, if the user is allowed to send polls.

Definition at line 72 of file ChatMemberRestricted.h.

◆ canSendVideoNotes

bool TgBot::ChatMemberRestricted::canSendVideoNotes

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

Definition at line 62 of file ChatMemberRestricted.h.

◆ canSendVideos

bool TgBot::ChatMemberRestricted::canSendVideos

True, if the user is allowed to send videos.

Definition at line 57 of file ChatMemberRestricted.h.

◆ canSendVoiceNotes

bool TgBot::ChatMemberRestricted::canSendVoiceNotes

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

Definition at line 67 of file ChatMemberRestricted.h.

◆ isMember

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.

◆ STATUS

const std::string TgBot::ChatMemberRestricted::STATUS
static

Definition at line 21 of file ChatMemberRestricted.h.

◆ untilDate

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.


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