bots.editAccessSettings

Edit the access restriction settings » of a managed bot; can only be called by the manager bot.

 Method schema is available as of layer 225. Switch »

Parameters

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

Result

Bool

Only bots can use this method

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.

Related pages

Managed bots

Users can create managed bots (which are controlled by a specific manager bot) directly through the MTProto API, without interacting with @BotFather.