Telegram Bot API

Posts a story on behalf of a managed business account. Requires the can_manage_stories business bot right. Returns Story on success.

post/postStory

Request

  • Base URL: https://api.telegram.org/bot<bot_token>
  • URL: https://api.telegram.org/bot<bot_token>/postStory
  • Auth: none declared

Request body

business_connection_idstring required

Unique identifier of the business connection

active_period21600 | 43200 | 86400 | 172800 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

captionstring

Caption of the story, 0-2048 characters after entities parsing

parse_modestring

Mode for parsing entities in the story caption. See formatting options for more details.

post_to_chat_pageboolean

Pass True to keep the story accessible after it expires

protect_contentboolean

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

Response

Telegram API response

oktrue required

Changes

    • info

      added the new optional request property /////// (media type: application/json)

    • info

      added the new optional request property /////// (media type: multipart/form-data)