bots.editAccessSettings #

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

Layer 223

Method schema is available as of layer 225. Switch »

Parameters #

NameTypeDescription
flags#Flags, see TL conditional fields
restrictedflags.0?trueIf set, restricts access to the managed bot to only the owner and the users in add_users
botInputUserThe managed bot whose access settings to edit
add_usersflags.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 #

CodeTypeDescription
400BOT_INVALIDThis is not a valid bot.
400USER_BOT_REQUIREDThis method can only be called by a bot.

Managed bots #

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