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

not (yet) hard-typed on Api — call it through the generic .call<T>() escape hatch documented in @yaebal/types.

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

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">)