Available methods

deleteStory()

Deletes a story previously posted by the bot on behalf of a managed business account. Requires the can_manage_stories business bot right. Returns True on success.

parameters

parametertyperequireddescription
business_connection_idstringrequiredUnique identifier of the business connection
story_idnumberrequiredUnique identifier of the story to delete

returns

boolean

usage in yaebal

not (yet) hard-typed on Api — call it through the generic .call<T>() escape hatch documented in @yaebal/types.

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

await bot.api.call<boolean>("deleteStory", {
  business_connection_id: "...",
  story_id: 1,
} satisfies DeleteStoryParams);