Skip to main content

ronami_core/payloads/
send_rich_message_draft.rs

1//! Generated by `codegen_payloads`, do not edit by hand.
2
3use serde::Serialize;
4
5use crate::types::{DraftId, InputRichMessage, Recipient, ThreadId, True};
6
7impl_payload! {
8    /// Use this method to stream a partial rich message to a user while the message is being generated. Returns _True_ on success.
9    #[derive(Debug, PartialEq, Clone, Serialize)]
10    pub SendRichMessageDraft (SendRichMessageDraftSetters) => True {
11        required {
12            /// Unique identifier for the target private chat
13            pub chat_id: Recipient [into],
14            /// Unique identifier of the message draft; must be non-zero
15            pub draft_id: DraftId,
16            /// The partial message to be streamed
17            pub rich_message: InputRichMessage,
18        }
19        optional {
20            /// Unique identifier for the target message thread
21            pub message_thread_id: ThreadId,
22        }
23    }
24}