bots.getAccessSettings #
Get 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 #
| Name | Type | Description |
|---|---|---|
| bot | InputUser | The managed bot whose access settings to retrieve |
Result #
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.¶