Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/grammy/types.ts>ChatPermissions

The Telegram Bot Framework.
Very Popular
Go to Latest
interface ChatPermissions
Re-export
import { type ChatPermissions } from "https://deno.land/x/grammy@v1.10.1/types.ts";

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

Properties

optional
can_send_messages: boolean

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

optional
can_send_media_messages: boolean

True, if the user is allowed to send audios, documents, photos, videos, video notes and voice notes, implies can_send_messages

optional
can_send_polls: boolean

True, if the user is allowed to send polls, implies can_send_messages

optional
can_send_other_messages: boolean

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

optional
can_add_web_page_previews: boolean

True, if the user is allowed to add web page previews to their messages, implies can_send_media_messages

optional
can_change_info: boolean

True, if the user is allowed to change the chat title, photo and other settings. Ignored in public supergroups

optional
can_invite_users: boolean

True, if the user is allowed to invite new users to the chat

optional
can_pin_messages: boolean

True, if the user is allowed to pin messages. Ignored in public supergroups