|
tgbot-cpp
|
Describes actions that a non-administrator user is allowed to take in a chat. More...
#include <ChatPermissions.h>
Public Types | |
| typedef std::shared_ptr< ChatPermissions > | Ptr |
Public Attributes | |
| bool | canSendMessages |
| Optional. True, if the user is allowed to send text messages, contacts, giveaways, giveaway winners, invoices, locations and venues. | |
| bool | canSendAudios |
| Optional. True, if the user is allowed to send audios. | |
| 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 | canSendVideos |
| Optional. True, if the user is allowed to send videos. | |
| bool | canSendVideoNotes |
| Optional. True, if the user is allowed to send video notes. | |
| bool | canSendVoiceNotes |
| Optional. True, if the user is allowed to send voice notes. | |
| bool | canSendPolls |
| Optional. True, if the user is allowed to send polls. | |
| bool | canSendOtherMessages |
| Optional. True, if the user is allowed to send animations, games, stickers and use inline bots. | |
| bool | canAddWebPagePreviews |
| Optional. True, if the user is allowed to add web page previews to their messages. | |
| bool | canChangeInfo |
| Optional. True, if the user is allowed to change the chat title, photo and other settings. | |
| bool | canInviteUsers |
| Optional. True, if the user is allowed to invite new users to the chat. | |
| bool | canPinMessages |
| Optional. True, if the user is allowed to pin messages. | |
| bool | canManageTopics |
| Optional. True, if the user is allowed to create forum topics. | |
Describes actions that a non-administrator user is allowed to take in a chat.
Definition at line 13 of file ChatPermissions.h.
| typedef std::shared_ptr<ChatPermissions> TgBot::ChatPermissions::Ptr |
Definition at line 16 of file ChatPermissions.h.
| bool TgBot::ChatPermissions::canAddWebPagePreviews |
Optional. True, if the user is allowed to add web page previews to their messages.
Definition at line 66 of file ChatPermissions.h.
| bool TgBot::ChatPermissions::canChangeInfo |
Optional. True, if the user is allowed to change the chat title, photo and other settings.
Ignored in public supergroups
Definition at line 73 of file ChatPermissions.h.
| bool TgBot::ChatPermissions::canInviteUsers |
Optional. True, if the user is allowed to invite new users to the chat.
Definition at line 78 of file ChatPermissions.h.
| bool TgBot::ChatPermissions::canManageTopics |
Optional. True, if the user is allowed to create forum topics.
If omitted defaults to the value of canPinMessages
Definition at line 92 of file ChatPermissions.h.
| bool TgBot::ChatPermissions::canPinMessages |
Optional. True, if the user is allowed to pin messages.
Ignored in public supergroups
Definition at line 85 of file ChatPermissions.h.
| bool TgBot::ChatPermissions::canSendAudios |
Optional. True, if the user is allowed to send audios.
Definition at line 26 of file ChatPermissions.h.
| bool TgBot::ChatPermissions::canSendDocuments |
Optional. True, if the user is allowed to send documents.
Definition at line 31 of file ChatPermissions.h.
| bool TgBot::ChatPermissions::canSendMessages |
Optional. True, if the user is allowed to send text messages, contacts, giveaways, giveaway winners, invoices, locations and venues.
Definition at line 21 of file ChatPermissions.h.
| bool TgBot::ChatPermissions::canSendOtherMessages |
Optional. True, if the user is allowed to send animations, games, stickers and use inline bots.
Definition at line 61 of file ChatPermissions.h.
| bool TgBot::ChatPermissions::canSendPhotos |
Optional. True, if the user is allowed to send photos.
Definition at line 36 of file ChatPermissions.h.
| bool TgBot::ChatPermissions::canSendPolls |
Optional. True, if the user is allowed to send polls.
Definition at line 56 of file ChatPermissions.h.
| bool TgBot::ChatPermissions::canSendVideoNotes |
Optional. True, if the user is allowed to send video notes.
Definition at line 46 of file ChatPermissions.h.
| bool TgBot::ChatPermissions::canSendVideos |
Optional. True, if the user is allowed to send videos.
Definition at line 41 of file ChatPermissions.h.
| bool TgBot::ChatPermissions::canSendVoiceNotes |
Optional. True, if the user is allowed to send voice notes.
Definition at line 51 of file ChatPermissions.h.