Edit the access restriction settings » of a managed bot; can only be called by the manager bot.
boolFalse#bc799737 = Bool;
boolTrue#997275b5 = Bool;
---functions---
bots.editAccessSettings#31813cd8 flags:# restricted:flags.0?true bot:InputUser add_users:flags.1?Vector<InputUser> = Bool;
| Name | Type | Description |
|---|---|---|
| flags | # | Flags, see TL conditional fields |
| restricted | flags.0?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 | flags.1?Vector<InputUser> | Additional users (max 10, excluding the owner) allowed to access the managed bot when restricted is set |
| Code | Type | Description |
|---|---|---|
| 400 | BOT_INVALID | This is not a valid bot. |
| 400 | USER_BOT_REQUIRED | This method can only be called by a bot. |
Users can create managed bots (which are controlled by a specific manager bot) directly through the MTProto API, without interacting with @BotFather.