Skip to content

repostStory

Returns Story

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.

Required: business_connection_id, from_chat_id, from_story_id, active_period · Optional: 2 parameters

Try it
Token saved
Response

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("repost_story", {
business_connection_id: "...",
from_chat_id: 0,
from_story_id: 0,
active_period: 0
})

Parameters

business_connection_id string Required
Unique identifier of the business connection.

from_chat_id number Required
Unique identifier of the chat which posted the story that should be reposted.

from_story_id number Required
Unique identifier of the story that should be reposted.

active_period number Required
Period after which the story is moved to the archive, in seconds; must be one of 6 * 3600, 12 * 3600, 86400, or 2 * 86400.

post_to_chat_page boolean
Pass True to keep the story accessible after it expires.

protect_content boolean
Pass True if the content of the story must be protected from forwarding and screenshotting.