peyk.platforms.telegram.methods.edit_story

async peyk.platforms.telegram.methods.edit_story(self, business_connection_id: str, story_id: int, content: InputStoryContentPhoto | InputStoryContentVideo, *, caption: str | None = None, parse_mode: str | None = None, caption_entities: List[MessageEntity] | None = None, areas: List[StoryArea] | None = None) Story

Edits a story previously posted by the bot 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

  • story_id – Unique identifier of the story to edit

  • content – Content of the story

  • 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