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
| parameter | type | required | description |
|---|---|---|---|
business_connection_id | string | required | Unique identifier of the business connection |
story_id | number | required | Unique 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.
import type { DeleteStoryParams } from "@yaebal/types";
await bot.api.call<boolean>("deleteStory", {
business_connection_id: "...",
story_id: 1,
} satisfies DeleteStoryParams);official Bot API docs: https://core.telegram.org/bots/api/#deletestory