bots.editAccessSettings
Edit the access restriction settings » of a managed bot; can only be called by the manager bot.
Edit the [access restriction settings »](https://core.telegram.org/api/bots/managed-bots.md#managing-a-managed-bot) of a managed bot; can only be called by the manager bot.
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
restricted | true | いいえ | If set, restricts access to the managed bot to only the owner and the users in `add_users` |
bot | InputUser | はい | The managed bot whose access settings to edit |
add_users | Vector<InputUser> | いいえ | Additional users (max 10, excluding the owner) allowed to access the managed bot when `restricted` is set |
レスポンス
Bool
MTProto RPC
- 400 · BOT_INVALID — This is not a valid bot.
- 400 · USER_BOT_REQUIRED — This method can only be called by a bot.