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