---
title: "POST /setChatPermissions"
method: POST
path: "/setChatPermissions"
---

# POST /setChatPermissions

`POST /setChatPermissions`

Use this method to set default chat permissions for all members. The bot must be an administrator in the group or a supergroup for this to work and must have the *can\_restrict\_members* admin rights. Returns *True* on success.

## Request body

- object
  - `chat_id` union, required — Unique identifier for the target chat or username of the target supergroup (in the format `@supergroupusername`)
    - integer
    - string
  - `permissions` ChatPermissions, required — Describes actions that a non-administrator user is allowed to take in a chat.
    - `can_send_messages` boolean — *Optional*. True, if the user is allowed to send text messages, contacts, locations and venues
    - `can_send_media_messages` boolean — *Optional*. True, if the user is allowed to send audios, documents, photos, videos, video notes and voice notes, implies can\_send\_messages
    - `can_send_polls` boolean — *Optional*. True, if the user is allowed to send polls, implies can\_send\_messages
    - `can_send_other_messages` boolean — *Optional*. True, if the user is allowed to send animations, games, stickers and use inline bots, implies can\_send\_media\_messages
    - `can_add_web_page_previews` boolean — *Optional*. True, if the user is allowed to add web page previews to their messages, implies can\_send\_media\_messages
    - `can_change_info` boolean — *Optional*. True, if the user is allowed to change the chat title, photo and other settings. Ignored in public supergroups
    - `can_invite_users` boolean — *Optional*. True, if the user is allowed to invite new users to the chat
    - `can_pin_messages` boolean — *Optional*. True, if the user is allowed to pin messages. Ignored in public supergroups

## Response `200`

- object
  - `ok` boolean, required
  - `result` boolean, required

## Other responses

- `default`

---

[API](https://skmtc.net/stoplight/apis/telegram-bot-api.md) · [All operations](https://skmtc.net/stoplight/apis/telegram-bot-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/stoplight/telegram-bot-api/versions/be4bbb34b64a/schema)
