postStory
Publishes a story on behalf of a managed business account; requires the can_manage_stories bot right and returns the created Story.
Instructions
Posts a story on behalf of a managed business account. Requires the can_manage_stories business bot right. Returns Story on success.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"business_connection_id": "<business_connection_id>",
"content": "<content>",
"active_period": "<active_period>"
},
"name": "postStory"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| areas | No | A list of clickable areas to be shown on the story | |
| caption | No | Caption of the story, 0-2048 characters after entities parsing | |
| content | Yes | Content of the story | |
| parse_mode | No | Mode for parsing entities in the story caption. See formatting options for more details. | |
| active_period | Yes | Period after which the story is moved to the archive, in seconds; must be one of 6 * 3600, 12 * 3600, 86400, or 2 * 86400 | |
| protect_content | No | Pass True if the content of the story must be protected from forwarding and screenshotting | |
| caption_entities | No | A list of special entities that appear in the caption, which can be specified instead of parse_mode | |
| post_to_chat_page | No | Pass True to keep the story accessible after it expires | |
| business_connection_id | Yes | Unique identifier of the business connection |