setBusinessAccountBio()
Changes the bio of a managed business account. Requires the can_change_bio business bot right. Returns True on success.
parameters
| parameter | type | required | description |
|---|---|---|---|
business_connection_id | string | required | Unique identifier of the business connection |
bio | string | optional | The new value of the bio for the business account; 0-140 characters |
returns
boolean
usage in yaebal
setBusinessAccountBio is directly typed on Api — call it straight off bot.api.
import type { SetBusinessAccountBioParams } from "@yaebal/types";
await bot.api.setBusinessAccountBio({
business_connection_id: "...",
} satisfies SetBusinessAccountBioParams);context shortcut
also available as ctx.setBusinessAccountBio() on
4
context types — see @yaebal/contexts.
/** Changes the bio of a managed business account. Requires the *can\_change\_bio* business bot right. Returns *True* on success. */
ctx.setBusinessAccountBio(params: Omit<SetBusinessAccountBioParams, "business_connection_id"> & { business_connection_id?: string })official Bot API docs: https://core.telegram.org/bots/api/#setbusinessaccountbio