getManagedBotAccessSettings()
Use this method to get the access settings of a managed bot. Returns a BotAccessSettings object on success.
parameters
| parameter | type | required | description |
|---|---|---|---|
user_id | number | required | User identifier of the managed bot whose access settings will be returned |
returns
usage in yaebal
not (yet) hard-typed on Api — call it through the generic .call<T>() escape hatch documented in @yaebal/types.
import type { BotAccessSettings, GetManagedBotAccessSettingsParams } from "@yaebal/types";
await bot.api.call<BotAccessSettings>("getManagedBotAccessSettings", {
user_id: 123456789,
} satisfies GetManagedBotAccessSettingsParams);context shortcut
also available as ctx.getManagedBotAccessSettings() on
16
context types — see @yaebal/contexts.
/** Use this method to get the access settings of a managed bot. Returns a [BotAccessSettings](https://core.telegram.org/bots/api/#botaccesssettings) object on success. */
ctx.getManagedBotAccessSettings(params?: Omit<GetManagedBotAccessSettingsParams, "user_id">)official Bot API docs: https://core.telegram.org/bots/api/#getmanagedbotaccesssettings