Available methods

setBusinessAccountBio()

Changes the bio of a managed business account. Requires the can_change_bio business bot right. Returns True on success.

parameters

parametertyperequireddescription
business_connection_idstringrequiredUnique identifier of the business connection
biostringoptionalThe 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.

bot.ts
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.

context shortcut
/** 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 })