ronami-core 1.0.0

Core part of the `ronami` library — Telegram Bot API client
Documentation
//! Generated by `codegen_payloads`, do not edit by hand.

use serde::Serialize;

use crate::types::{BusinessConnectionId, ChatId, Seconds, Story, 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,
        }
    }
}