tgbot-cpp
Loading...
Searching...
No Matches
ChatMemberRestricted.h
Go to the documentation of this file.
1#ifndef TGBOT_CHATMEMBERRESTRICTED_H
2#define TGBOT_CHATMEMBERRESTRICTED_H
3
5
6#include <cstdint>
7#include <memory>
8
9namespace TgBot {
10
19
20public:
21 static const std::string STATUS;
22
23 typedef std::shared_ptr<ChatMemberRestricted> Ptr;
24
26 this->status = STATUS;
27 }
28
33
38
43
48
53
58
63
68
73
78
83
88
93
98
103
109 std::uint32_t untilDate;
110};
111}
112
113#endif //TGBOT_CHATMEMBERRESTRICTED_H
This abstract class is base of all chat members.
Definition ChatMember.h:18
std::string status
The member's status in the chat.
Definition ChatMember.h:30
Represents a chat member that is under certain restrictions in the chat.
bool canChangeInfo
True, if the user is allowed to change the chat title, photo and other settings.
bool canSendVideoNotes
True, if the user is allowed to send video notes.
bool canSendDocuments
True, if the user is allowed to send documents.
bool canSendPolls
True, if the user is allowed to send polls.
bool canPinMessages
True, if the user is allowed to pin messages.
bool canSendVideos
True, if the user is allowed to send videos.
static const std::string STATUS
bool canSendPhotos
True, if the user is allowed to send photos.
bool canSendVoiceNotes
True, if the user is allowed to send voice notes.
bool canAddWebPagePreviews
True, if the user is allowed to add web page previews to their messages.
bool isMember
True, if the user is a member of the chat at the moment of the request.
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.
std::shared_ptr< ChatMemberRestricted > Ptr
bool canSendOtherMessages
True, if the user is allowed to send animations, games, stickers and use inline bots.
bool canSendMessages
True, if the user is allowed to send text messages, contacts, giveaways, giveaway winners,...
bool canSendAudios
True, if the user is allowed to send audios.
bool canInviteUsers
True, if the user is allowed to invite new users to the chat.
Definition Api.h:40