Layer 227
BotsGetAccessSettings
Get the access restriction settings of a managed bot; can only be called by the manager bot.
method
Bots
bots.getAccessSettings#213853a3 bot:InputUser = bots.AccessSettings;
Parameters
| Name | Type | Description |
|---|---|---|
| Bot | InputUser | The managed bot whose access settings to retrieve |
Returns
bots.AccessSettingsGogram Example
// BotsGetAccessSettings - positional arguments result, err := client.BotsGetAccessSettings(&tg.InputUserSelf{}) if err != nil { // handle error } // result is *tg.BotsAccessSettings
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. |