telegramx.js

PostStoryParams

interface

Declaration

interface PostStoryParams 

Properties

active_period: number;

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

areasproperty#
areas?: StoryArea[];

A JSON-serialized list of clickable areas to be shown on the story

business_connection_id: string;

Unique identifier of the business connection

caption_entities?: MessageEntity[];

A JSON-serialized list of special entities that appear in the caption, which can be specified instead of parse_mode

captionproperty#
caption?: string;

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

contentproperty#

Content of the story

parse_modeproperty#
parse_mode?: string;

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

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