tgbot-cpp
Loading...
Searching...
No Matches
TgBot::ChatPermissions Class Reference

Describes actions that a non-administrator user is allowed to take in a chat. More...

#include <ChatPermissions.h>

Public Types

typedef std::shared_ptr< ChatPermissionsPtr
 

Public Attributes

bool canSendMessages
 Optional. True, if the user is allowed to send text messages, contacts, 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, implies canSendMessages.
 
bool canSendOtherMessages
 Optional. True, if the user is allowed to send animations, games, stickers and use inline bots, implies canSendMediaMessages.
 
bool canAddWebPagePreviews
 Optional. True, if the user is allowed to add web page previews to their messages, implies canSendMediaMessages.
 
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.
 

Detailed Description

Describes actions that a non-administrator user is allowed to take in a chat.

Definition at line 14 of file ChatPermissions.h.

Member Typedef Documentation

◆ Ptr

typedef std::shared_ptr<ChatPermissions> TgBot::ChatPermissions::Ptr

Definition at line 16 of file ChatPermissions.h.

Member Data Documentation

◆ canAddWebPagePreviews

bool TgBot::ChatPermissions::canAddWebPagePreviews

Optional. True, if the user is allowed to add web page previews to their messages, implies canSendMediaMessages.

Definition at line 66 of file ChatPermissions.h.

◆ canChangeInfo

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.

◆ canInviteUsers

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.

◆ canManageTopics

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.

◆ canPinMessages

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.

◆ canSendAudios

bool TgBot::ChatPermissions::canSendAudios

Optional. True, if the user is allowed to send audios.

Definition at line 26 of file ChatPermissions.h.

◆ canSendDocuments

bool TgBot::ChatPermissions::canSendDocuments

Optional. True, if the user is allowed to send documents.

Definition at line 31 of file ChatPermissions.h.

◆ canSendMessages

bool TgBot::ChatPermissions::canSendMessages

Optional. True, if the user is allowed to send text messages, contacts, invoices, locations and venues.

Definition at line 21 of file ChatPermissions.h.

◆ canSendOtherMessages

bool TgBot::ChatPermissions::canSendOtherMessages

Optional. True, if the user is allowed to send animations, games, stickers and use inline bots, implies canSendMediaMessages.

Definition at line 61 of file ChatPermissions.h.

◆ canSendPhotos

bool TgBot::ChatPermissions::canSendPhotos

Optional. True, if the user is allowed to send photos.

Definition at line 36 of file ChatPermissions.h.

◆ canSendPolls

bool TgBot::ChatPermissions::canSendPolls

Optional. True, if the user is allowed to send polls, implies canSendMessages.

Definition at line 56 of file ChatPermissions.h.

◆ canSendVideoNotes

bool TgBot::ChatPermissions::canSendVideoNotes

Optional. True, if the user is allowed to send video notes.

Definition at line 46 of file ChatPermissions.h.

◆ canSendVideos

bool TgBot::ChatPermissions::canSendVideos

Optional. True, if the user is allowed to send videos.

Definition at line 41 of file ChatPermissions.h.

◆ canSendVoiceNotes

bool TgBot::ChatPermissions::canSendVoiceNotes

Optional. True, if the user is allowed to send voice notes.

Definition at line 51 of file ChatPermissions.h.


The documentation for this class was generated from the following file: