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
getManagedBotAccessSettings is directly typed on Api — call it straight off bot.api.
import type { GetManagedBotAccessSettingsParams } from "@yaebal/types";
await bot.api.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"> & { user_id?: number })official Bot API docs: https://core.telegram.org/bots/api/#getmanagedbotaccesssettings