repostStory
Repost a story from one managed business account to another using the same bot. Use it to share bot-posted stories between business accounts with the can_manage_stories right.
Instructions
Reposts a story on behalf of a business account from another business account. Both business accounts must be managed by the same bot, and the story on the source account must have been posted (or reposted) by the bot. Requires the can_manage_stories business bot right for both business accounts. 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>",
"from_chat_id": "<from_chat_id>",
"from_story_id": "<from_story_id>",
"active_period": "<active_period>"
},
"name": "repostStory"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from_chat_id | Yes | Unique identifier of the chat which posted the story that should be reposted | |
| 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 | |
| from_story_id | Yes | Unique identifier of the story that should be reposted | |
| protect_content | No | Pass True if the content of the story must be protected from forwarding and screenshotting | |
| 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 |