Function edit_story

Source
pub async fn edit_story(
    story_sender_chat_id: i64,
    story_id: i32,
    content: Option<InputStoryContent>,
    areas: Option<InputStoryAreas>,
    caption: Option<FormattedText>,
    client_id: i32,
) -> Result<(), Error>
Expand description

Changes content and caption of a story. Can be called only if story.can_be_edited == true

§Arguments

  • story_sender_chat_id - Identifier of the chat that posted the story
  • story_id - Identifier of the story to edit
  • content - New content of the story; pass null to keep the current content
  • areas - New clickable rectangle areas to be shown on the story media; pass null to keep the current areas. Areas can’t be edited if story content isn’t changed
  • caption - New story caption; pass null to keep the current caption
  • client_id - The client id to send the request to