setMyName()
Use this method to change the bot's name. Returns True on success.
parameters
| parameter | type | required | description |
|---|---|---|---|
name | string | optional | New bot name; 0-64 characters. Pass an empty string to remove the dedicated name for the given language. |
language_code | string | optional | A two-letter ISO 639-1 language code. If empty, the name will be shown to all users for whose language there is no dedicated name. |
returns
boolean
usage in yaebal
not (yet) hard-typed on Api — call it through the generic .call<T>() escape hatch documented in @yaebal/types.
import type { SetMyNameParams } from "@yaebal/types";
await bot.api.call<boolean>("setMyName", {} satisfies SetMyNameParams);official Bot API docs: https://core.telegram.org/bots/api/#setmyname