editStory
Edits a story previously posted by the bot on behalf of a managed business account. Requires the can_manage_stories business bot right.
Required: business_connection_id, story_id, content · Optional: 4 parameters
Limits:
- caption: 0-2048 characters
Try it
TypeScript example · @effect-ak/tg-bot-client
import { makeTgBotClient } from "@effect-ak/tg-bot-client"
const client = makeTgBotClient({ bot_token: "YOUR_BOT_TOKEN" })
const result = await client.execute("edit_story", { business_connection_id: "...", story_id: 0, content: { /* InputStoryContent */ }})Parameters
business_connection_id string Required
Unique identifier of the business connection.
story_id number Required
Unique identifier of the story to edit.
content InputStoryContent Required
Content of the story.
caption string
Caption of the story, 0-2048 characters after entities parsing.
parse_mode "HTML" | "MarkdownV2"
Mode for parsing entities in the story caption. See formatting options for more details.
caption_entities MessageEntity[]
A JSON-serialized list of special entities that appear in the caption, which can be specified instead of parse_mode.
areas StoryArea[]
A JSON-serialized list of clickable areas to be shown on the story.
Related methods
editChatInviteLink · editChatSubscriptionInviteLink · editForumTopic · editGeneralForumTopic · editMessageCaption · editMessageChecklist · editMessageLiveLocation · editMessageMedia · editMessageReplyMarkup · editMessageText · editUserStarSubscription