account.disablePeerConnectedBot
Permanently disconnect a specific chat from all business bots » (equivalent to specifying it in `recipients.exclude_users` during initial configuration with account.updateConnectedBot »); to reconnect of a chat disconnected using this method the user must reconnect the entire bot by invoking account.updateConnectedBot ».
Permanently disconnect a specific chat from all [business bots »](https://core.telegram.org/api/bots/connected-business-bots.md) (equivalent to specifying it in `recipients.exclude_users` during initial configuration with [account.updateConnectedBot »](https://core.telegram.org/method/account.updateConnectedBot.md)); to reconnect of a chat disconnected using this method the user must reconnect the entire bot by invoking [account.updateConnectedBot »](https://core.telegram.org/method/account.updateConnectedBot.md).
| Name | Type | Required | Description |
|---|---|---|---|
peer | InputPeer | Yes | The chat to disconnect |
Responses
Bool
MTProto RPC
- 400 · BOT_ALREADY_DISABLED — The connected business bot was already disabled for the specified peer.
- 400 · BOT_NOT_CONNECTED_YET — No [business bot](https://core.telegram.org/api/business.md#connected-bots) is connected to the currently logged in user.
- 400 · PEER_ID_INVALID — The provided peer id is invalid.