Set chat permissions
The telegram_bot_api-set-chat-permissions tool allows administrators to efficiently manage default permissions for all members of a Telegram chat or group. It streamlines controlling chat functionalities directly through the Telegram Bot API, ensuring smooth governance and user interaction.
Features
- Set default chat permissions for all members via Telegram Bot API.
- Supports configuration of message sending, media sharing, and poll creation permissions.
- Allows toggling permissions for animations, games, stickers, and inline bot usage.
- Enables control over changing chat info, inviting users, and pinning messages.
- Simple integration with chat ID or public group usernames for easy setup.
Benefits
- Enhances chat security by precisely managing user capabilities.
- Reduces administrative effort by automating permission settings for entire chats.
- Improves member experience by customizing access to features per group needs.
- Ensures compliance with community rules and moderation policies.
- Facilitates scalable management for large Telegram groups and supergroups.
Description
Set default chat permissions for all members. See the docs for more information
Parameters
9 parameters
| Name | Type | Description |
|---|---|---|
| chatIdrequired | string | Enter the unique identifier for the target chat (e.g. |
| canSendMessages | boolean | If the user is allowed to send text messages, contacts, locations and venues |
| canSendMediaMessages | boolean | If the user is allowed to send audios, documents, photos, videos, video notes and voice notes |
| canSendPolls | boolean | If the user is allowed to send polls |
| canSendOtherMessages | boolean | If the user is allowed to send animations, games, stickers and use inline bots |
| canAddWebPagePreviews | boolean | If the user is allowed to add web page previews to their messages |
| canChangeInfo | boolean | If the user is allowed to change the chat title, photo and other settings. Ignored in public SuperGroups |
| canInviteUsers | boolean | If the user is allowed to invite new users to the chat |
| canPinMessages | boolean | If the user is allowed to pin messages. Ignored in public SuperGroups |