ban_chat_sender_chat
Prevent a channel from sending messages in a group by banning its sender chat, blocking the owner from posting on behalf of that channel.
Instructions
Ban a channel chat in a supergroup or channel. The owner of the sender chat won't be able to send messages on behalf of their chat.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"sender_chat_id": "<sender_chat_id>"
},
"name": "ban_chat_sender_chat"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat_id | No | Chat ID or @channel_username. Optional — defaults to log group | |
| sender_chat_id | Yes | The sender chat to ban |