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.
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
deleted | true | いいえ | Whether to fully disconnect the bot from the current account. |
rights | BusinessBotRights | いいえ | Business bot rights. |
bot | InputUser | はい | The bot to connect or disconnect |
recipients | InputBusinessBotRecipients | はい | Configuration for the business connection |
レスポンス
Updates
MTProto RPC
- 400 · BOT_BUSINESS_MISSING — The specified bot is not a business bot (the [user](https://core.telegram.org/constructor/user.md).bot_business flag is not set).
- 400 · BUSINESS_RECIPIENTS_EMPTY — You didn't set any flag in inputBusinessBotRecipients, thus the bot cannot work with *any* peer.