Telegram Bot API
🌐 English

repostStory

Category: Stories · Bot API 10.3 · Official documentation

Reposts a story between business accounts (Bot API 9.3).

Returns: On success, returns Story.

Parameters

ParameterTypeRequiredDescription
business_connection_idStringYesBusiness connection ID
from_chat_idIntegerYesIdentifier of the chat which posted the story
from_story_idIntegerYesIdentifier of the story to repost
active_periodIntegerYesActive period in seconds: 21600, 43200, 86400 or 172800
post_to_chat_pageBooleanOptionalKeep the story accessible after it expires
protect_contentBooleanOptionalProtect content from forwarding and screenshotting

Parameter descriptions are concise summaries; see the official documentation for the full text.

Example request

curl

curl -s -X POST "https://api.telegram.org/bot$TOKEN/repostStory" \
  -H "Content-Type: application/json" \
  -d '{
  "business_connection_id": "BUSINESS_CONNECTION_ID",
  "from_chat_id": 123456789,
  "from_story_id": 1,
  "active_period": 86400
}'

Python

import requests

TOKEN = "123456789:AAEexampleTokenReplaceWithYours"
resp = requests.post(
    f"https://api.telegram.org/bot{TOKEN}/repostStory",
    json={
        "business_connection_id": "BUSINESS_CONNECTION_ID",
        "from_chat_id": 123456789,
        "from_story_id": 1,
        "active_period": 86400
    },
    timeout=30,
)
print(resp.json())

JavaScript

const TOKEN = "123456789:AAEexampleTokenReplaceWithYours";
const res = await fetch(`https://api.telegram.org/bot${TOKEN}/repostStory`, {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "business_connection_id": "BUSINESS_CONNECTION_ID",
    "from_chat_id": 123456789,
    "from_story_id": 1,
    "active_period": 86400
  }),
});
console.log(await res.json());

Step-by-step guide: How to Create a Telegram Bot: Step by Step with BotFather and Python