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 | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
peer | InputPeer | Ja | The chat to disconnect |
Antworten
Bool
MTProto RPC
- 400 · BOT_ALREADY_DISABLED – Der verbundene Business-Bot wurde für den angegebenen Peer bereits deaktiviert.
- 400 · BOT_NOT_CONNECTED_YET – Kein [Business Bot](https://core.telegram.org/api/business.md#connected-bots) ist mit dem aktuell angemeldeten Benutzer verbunden.
- 400 · PEER_ID_INVALID – Die angegebene Peer-ID ist ungültig.