banChatSenderChat
Ban a channel chat to stop its owner from sending messages in your supergroup or channel until unbanned. Requires admin rights; returns true on success.
Instructions
Ban a channel chat in a supergroup or channel. Until the chat is unbanned, the owner of the banned chat won't be able to send messages on behalf of any of their channels. The bot must be an administrator and must have the appropriate administrator rights. Returns True on success.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat_id | Yes | Unique identifier for the target chat or username of the target supergroup/channel (in the format @channelusername) | |
| sender_chat_id | Yes | Unique identifier of the target sender chat |