ronami_core/payloads/repost_story.rs
1//! Generated by `codegen_payloads`, do not edit by hand.
2
3use serde::Serialize;
4
5use crate::types::BusinessConnectionId;
6use crate::types::ChatId;
7use crate::types::Seconds;
8use crate::types::Story;
9use crate::types::StoryId;
10
11impl_payload! {
12 /// Reposts a story on behalf of a business account from another business account. Returns [`Story`] on success.
13 ///
14 /// [`Story`]: crate::types::Story
15 #[derive(Debug, PartialEq, Eq, Hash, Clone, Serialize)]
16 pub RepostStory (RepostStorySetters) => Story {
17 required {
18 /// Unique identifier of the business connection
19 pub business_connection_id: BusinessConnectionId,
20 /// Unique identifier of the chat which posted the story that should be reposted
21 pub from_chat_id: ChatId [into],
22 /// Unique identifier of the story that should be reposted
23 pub from_story_id: StoryId,
24 /// Period after which the story is moved to the archive, in seconds
25 pub active_period: Seconds,
26 }
27 optional {
28 /// Pass _true_ to keep the story accessible after it expires
29 pub post_to_chat_page: bool,
30 /// Pass _true_ if the content of the story must be protected from forwarding and screenshotting
31 pub protect_content: bool,
32 }
33 }
34}