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
deleteStory is directly typed on Api — call it straight off bot.api.
import type { DeleteStoryParams } from "@yaebal/types";
await bot.api.deleteStory({
business_connection_id: "...",
story_id: 1,
} satisfies DeleteStoryParams);context shortcut
also available as ctx.deleteStory() on
4
context types — see @yaebal/contexts.
/** 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. */
ctx.deleteStory(params: Omit<DeleteStoryParams, "business_connection_id"> & { business_connection_id?: string })official Bot API docs: https://core.telegram.org/bots/api/#deletestory