Telegram Bot icon

Telegram Bot

Interact with the Telegram Bot API – send messages, manage chats, handle payments, and more

Actions101

Chat → Set Chat Permissions

AI-generated

Summary

Set chat permissions for a specified chat by providing a JSON object describing the permissions.

Inputs

  • Chat ID (required) — Unique identifier for the target chat or username (@channelusername).
  • Permissions (JSON) (required) — JSON object describing chat permissions (ChatPermissions).
  • Use Independent Chat Permissions — Optional boolean to use independent chat permissions.

Output shape

a single object containing the updated Chat object as returned by the Telegram Bot API

The operation returns the result field from the Telegram API response. The 'Permissions (JSON)' input must be a well-formed JSON object matching the ChatPermissions format expected by the Telegram API. If 'Use Independent Chat Permissions' is provided, it is included in the request body as 'use_independent_chat_permissions'. Any error response from the Telegram API will cause the node to throw an error, unless 'Continue On Fail' is enabled.

Links

Discussion