Telegram Bot icon

Telegram Bot

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

Actions101

Chat → Restrict Chat Member

AI-generated

Summary

Restrict a chat member's permissions in a Telegram chat by specifying their user ID and the permissions to apply, with optional settings for restriction duration and independent permissions.

Inputs

  • Chat ID (required) — Unique identifier for the target chat or username (@channelusername).
  • User ID (required) — Unique identifier of the target user to restrict.
  • Permissions (JSON) (required) — JSON object describing the new chat permissions to apply to the user (ChatPermissions).
  • Until Date — Unix timestamp when restrictions will be automatically lifted.
  • Use Independent Chat Permissions — If true, use independent chat permissions.

Output shape

a single record containing the Telegram API response to the restriction request.

Returns the API response object under the 'result' property, reflecting success or failure of the restriction action.

Links

Discussion