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 with optional permission overrides and expiration

Inputs

  • chat_id (required) — Unique identifier for the target chat or username (@channelusername)
  • user_id (required) — Unique identifier of the target user
  • permissions (required) — JSON object describing chat permissions (ChatPermissions)
  • restrictAdditionalFields — Additional fields for restriction such as until_date and use_independent_chat_permissions

Output shape

object

Telegram API returns an ok flag; if result is present its fields are passed through. Usually only success indication.

Examples

Example 1: Restrict a user in a group for 1 hour

chat_id: group ID, user_id: target user ID, permissions: {"can_send_messages":true,"can_send_media_messages":true}, restrictAdditionalFields: {"until_date": }

Links

Discussion