getMyName()
Use this method to get the current bot name for the given user language. Returns BotName on success.
parameters
| parameter | type | required | description |
|---|---|---|---|
language_code | string | optional | A two-letter ISO 639-1 language code or an empty string |
returns
usage in yaebal
getMyName is directly typed on Api — call it straight off bot.api.
import type { GetMyNameParams } from "@yaebal/types";
await bot.api.getMyName({} satisfies GetMyNameParams);official Bot API docs: https://core.telegram.org/bots/api/#getmyname