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
19public:
20 static const std::string STATUS;
21
22 typedef std::shared_ptr<ChatMemberRestricted> Ptr;
23
25 this->status = STATUS;
26 }
27
32
37
42
47
52
57
62
67
72
77
82
87
92
97
102
108 std::uint32_t untilDate;
109};
110}
111
112#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, invoices, locations and venues.
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:39