ChatPermissions
Describes actions that a user is allowed to take in a chat.
This is an alias for the ChatPermissionsUnion
type.
chevron_leftchevron_right
Parameters
Interface
Name | Type | Description |
---|---|---|
_ | "chatPermissions" | |
canSendMessages | boolean | True, if the user can send text messages, contacts, locations, and venues |
canSendMediaMessages | boolean | True, if the user can send audio files, documents, photos, videos, video notes, and voice notes. Implies can_send_messages permissions |
canSendPolls | boolean | True, if the user can send polls. Implies can_send_messages permissions |
canSendOtherMessages | boolean | True, if the user can send animations, games, stickers, and dice and use inline bots. Implies can_send_messages permissions |
canAddWebPagePreviews | boolean | True, if the user may add a web page preview to their messages. Implies can_send_messages permissions |
canChangeInfo | boolean | True, if the user can change the chat title, photo, and other settings |
canInviteUsers | boolean | True, if the user can invite new users to the chat |
canPinMessages | boolean | True, if the user can pin messages |