đ§ edit_story
Edits a story previously posted by the bot on behalf of a managed business account.
âī¸ Parameters
business_connection_id
(str
): Unique identifier of the business connectionstory_id
(int
): Unique identifier of the story to editcontent
(InputStoryContentPhoto or InputStoryContentVideo ): Content of the storycaption
(str
) (optional
): Caption of the story, 0-2048 characters after entities parsingparse_mode
(str
) (optional
): Mode for parsing entities in the story captioncaption_entities
(List of MessageEntity ) (optional
): A JSON-serialized list of special entities that appear in the captionareas
(List of StoryArea ) (optional
): A JSON-serialized list of clickable areas to be shown on the story
đ˛ Returns
Story
đ Examples
-đĒĢ Required Parameters
await bot.edit_story(
business_connection_id=your_business_connection_id_here,
story_id=your_story_id_here,
content=your_content_here
)
-đ All Parameters
await bot.edit_story(
business_connection_id=your_business_connection_id_here,
story_id=your_story_id_here,
content=your_content_here,
caption=your_caption_here,
parse_mode=your_parse_mode_here,
caption_entities=your_caption_entities_here,
areas=your_areas_here
)