Available methods

getMyName()

Use this method to get the current bot name for the given user language. Returns BotName on success.

parameters

parametertyperequireddescription
language_codestringoptionalA two-letter ISO 639-1 language code or an empty string

returns

BotName

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 { BotName, GetMyNameParams } from "@yaebal/types";

await bot.api.call<BotName>("getMyName", {} satisfies GetMyNameParams);