peyk.platforms.telegram.methods.post_story¶
- async peyk.platforms.telegram.methods.post_story(self, business_connection_id: str, content: InputStoryContentPhoto | InputStoryContentVideo, active_period: int, *, caption: str | None = None, parse_mode: str | None = None, caption_entities: List[MessageEntity] | None = None, areas: List[StoryArea] | None = None, post_to_chat_page: bool | None = None, protect_content: bool | None = None) Story¶
Posts a story on behalf of a managed business account. Requires the can_manage_stories business bot right. Returns Story on success.
- Parameters:
business_connection_id – Unique identifier of the business connection
content – Content of the story
active_period – Period after which the story is moved to the archive, in seconds; must be one of 6 3600, 12 3600, 86400, or 2 * 86400
caption – Caption of the story, 0-2048 characters after entities parsing
parse_mode – Mode for parsing entities in the story caption. See formatting options for more details.
caption_entities – A JSON-serialized list of special entities that appear in the caption, which can be specified instead of parse_mode
areas – A JSON-serialized list of clickable areas to be shown on the story
post_to_chat_page – Pass True to keep the story accessible after it expires
protect_content – Pass True if the content of the story must be protected from forwarding and screenshotting