teloxide_core/payloads/edit_story.rs
1//! Generated by `codegen_payloads`, do not edit by hand.
2
3use serde::Serialize;
4
5use crate::types::{
6 BusinessConnectionId, InputStoryContent, MessageEntity, ParseMode, Story, StoryArea, StoryId,
7};
8
9impl_payload! {
10 @[multipart = content]
11 /// 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.
12 ///
13 /// [`Story`]: crate::types::Story
14 #[derive(Debug, Clone, Serialize)]
15 pub EditStory (EditStorySetters) => Story {
16 required {
17 /// Unique identifier of the business connection
18 pub business_connection_id: BusinessConnectionId,
19 /// Unique identifier of the story to edit
20 pub story_id: StoryId,
21 /// Content of the story
22 pub content: InputStoryContent,
23 }
24 optional {
25 /// Caption of the story, 0-2048 characters after entities parsing
26 pub caption: String [into],
27 /// Mode for parsing entities in the story caption. See [formatting options] for more details
28 ///
29 /// [formatting options]: https://core.telegram.org/bots/api#formatting-options
30 pub parse_mode: ParseMode,
31 /// List of special entities that appear in the caption, which can be specified instead of _parse_mode_
32 pub caption_entities: Vec<MessageEntity> [collect],
33 /// List of clickable areas to be shown on the story
34 pub areas: Vec<StoryArea> [collect],
35 }
36 }
37}