Airgram

Guides
/
/
Output types

ChatPermissions

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

This is an alias for the ChatPermissionsUnion type.


NameTypeDescription
_"chatPermissions"
canSendMessagesboolean True, if the user can send text messages, contacts, locations, and venues
canSendMediaMessagesboolean True, if the user can send audio files, documents, photos, videos, video notes, and voice notes. Implies can_send_messages permissions
canSendPollsboolean True, if the user can send polls. Implies can_send_messages permissions
canSendOtherMessagesboolean True, if the user can send animations, games, stickers, and dice and use inline bots. Implies can_send_messages permissions
canAddWebPagePreviewsboolean True, if the user may add a web page preview to their messages. Implies can_send_messages permissions
canChangeInfoboolean True, if the user can change the chat title, photo, and other settings
canInviteUsersboolean True, if the user can invite new users to the chat
canPinMessagesboolean True, if the user can pin messages