Layer 227
BotsEditAccessSettings
Edit the access restriction settings of a managed bot; can only be called by the manager bot.
method
Bots
bots.editAccessSettings#31813cd8 flags:# restricted:flags.0?true bot:InputUser add_users:flags.1?Vector<InputUser> = Bool;
Parameters
| Name | Type | Description |
|---|---|---|
| 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 |
| AddUsers | flags .1? Vector < InputUser > | Additional users (max 10, excluding the owner) allowed to access the managed bot when restricted is set |
Returns
BoolGogram Example
// BotsEditAccessSettings - positional arguments result, err := client.BotsEditAccessSettings(nil, &tg.InputUserSelf{}, nil) if err != nil { // handle error } // result is *tg.Bool
Possible Errors
| 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. |