account.updateConnectedBot
Connect a business bot » to the current account, or to change the current connection settings.
Connect a [business bot »](https://core.telegram.org/api/bots/connected-business-bots.md) to the current account, or to change the current connection settings.
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
deleted | true | Nein | Whether to fully disconnect the bot from the current account. |
rights | BusinessBotRights | Nein | Rechte für Business-Bots. |
bot | InputUser | Ja | The bot to connect or disconnect |
recipients | InputBusinessBotRecipients | Ja | Configuration for the business connection |
Antworten
Updates
MTProto RPC
- 400 · BOT_BUSINESS_MISSING – Der angegebene Bot ist kein Business-Bot (das Flag [user](https://core.telegram.org/constructor/user.md).bot_business ist nicht gesetzt).
- 400 · BUSINESS_RECIPIENTS_EMPTY – Sie haben in inputBusinessBotRecipients kein Flag gesetzt, daher kann der Bot nicht mit *irgendeinem* Peer arbeiten.