//! Generated by `codegen_payloads`, do not edit by hand.
use serde::Serialize;
use crate::types::BusinessConnectionId;
use crate::types::ChatId;
use crate::types::Seconds;
use crate::types::Story;
use crate::types::StoryId;
impl_payload! {
/// Reposts a story on behalf of a business account from another business account. Returns [`Story`] on success.
///
/// [`Story`]: crate::types::Story
#[derive(Debug, PartialEq, Eq, Hash, Clone, Serialize)]
pub RepostStory (RepostStorySetters) => Story {
required {
/// Unique identifier of the business connection
pub business_connection_id: BusinessConnectionId,
/// Unique identifier of the chat which posted the story that should be reposted
pub from_chat_id: ChatId [into],
/// Unique identifier of the story that should be reposted
pub from_story_id: StoryId,
/// Period after which the story is moved to the archive, in seconds
pub active_period: Seconds,
}
optional {
/// Pass _true_ to keep the story accessible after it expires
pub post_to_chat_page: bool,
/// Pass _true_ if the content of the story must be protected from forwarding and screenshotting
pub protect_content: bool,
}
}
}