tgbot-cpp
Loading...
Searching...
No Matches
ChatPermissions.h
Go to the documentation of this file.
1#ifndef TGBOT_CHATPERMISSIONS_H
2#define TGBOT_CHATPERMISSIONS_H
3
4#include <memory>
5
6namespace TgBot {
7
15public:
16 typedef std::shared_ptr<ChatPermissions> Ptr;
17
22
27
32
37
42
47
52
57
62
67
74
79
86
93};
94}
95
96#endif //TGBOT_CHATPERMISSIONS_H
Describes actions that a non-administrator user is allowed to take in a chat.
bool canSendMessages
Optional. True, if the user is allowed to send text messages, contacts, invoices, locations and venue...
bool canChangeInfo
Optional. True, if the user is allowed to change the chat title, photo and other settings.
std::shared_ptr< ChatPermissions > Ptr
bool canManageTopics
Optional. True, if the user is allowed to create forum topics.
bool canAddWebPagePreviews
Optional. True, if the user is allowed to add web page previews to their messages,...
bool canSendVoiceNotes
Optional. True, if the user is allowed to send voice notes.
bool canSendOtherMessages
Optional. True, if the user is allowed to send animations, games, stickers and use inline bots,...
bool canSendPolls
Optional. True, if the user is allowed to send polls, implies canSendMessages.
bool canSendDocuments
Optional. True, if the user is allowed to send documents.
bool canSendPhotos
Optional. True, if the user is allowed to send photos.
bool canSendVideoNotes
Optional. True, if the user is allowed to send video notes.
bool canSendAudios
Optional. True, if the user is allowed to send audios.
bool canInviteUsers
Optional. True, if the user is allowed to invite new users to the chat.
bool canSendVideos
Optional. True, if the user is allowed to send videos.
bool canPinMessages
Optional. True, if the user is allowed to pin messages.
Definition Api.h:39