Available methods

getManagedBotAccessSettings()

Use this method to get the access settings of a managed bot. Returns a BotAccessSettings object on success.

parameters

parametertyperequireddescription
user_idnumberrequiredUser identifier of the managed bot whose access settings will be returned

returns

BotAccessSettings

usage in yaebal

getManagedBotAccessSettings is directly typed on Api — call it straight off bot.api.

bot.ts
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.

context shortcut
/** 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 })