Skip to main content

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