1#ifndef TGBOT_CHATPERMISSIONS_H
2#define TGBOT_CHATPERMISSIONS_H
16 typedef std::shared_ptr<ChatPermissions>
Ptr;
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, giveaways,...
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.
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.