Available methods

getMyDescription()

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

parameters

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

returns

BotDescription

usage in yaebal

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

bot.ts
import type { GetMyDescriptionParams } from "@yaebal/types";

await bot.api.getMyDescription({} satisfies GetMyDescriptionParams);