ronami_core/payloads/send_checklist.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::EffectId;
8use crate::types::InputChecklist;
9use crate::types::Message;
10use crate::types::ReplyMarkup;
11use crate::types::ReplyParameters;
12
13impl_payload! {
14 /// Use this method to send a checklist on behalf of a connected business account. On success, the sent [`Message`] is returned.
15 ///
16 /// [`Message`]: crate::types::Message
17 #[derive(Debug, PartialEq, Eq, Hash, Clone, Serialize)]
18 pub SendChecklist (SendChecklistSetters) => Message {
19 required {
20 /// Unique identifier of the business connection on behalf of which the message will be sent
21 pub business_connection_id: BusinessConnectionId,
22 /// Unique identifier for the target chat
23 pub chat_id: ChatId [into],
24 /// Checklist to send
25 pub checklist: InputChecklist,
26 }
27 optional {
28 /// Sends the message silently. Users will receive a notification with no sound
29 pub disable_notification: bool,
30 /// Protects the contents of sent messages from forwarding and saving
31 pub protect_content: bool,
32 /// Unique identifier of the message effect to be added to the message
33 pub message_effect_id: EffectId,
34 /// Description of the message to reply to
35 pub reply_parameters: ReplyParameters,
36 /// An inline keyboard
37 pub reply_markup: ReplyMarkup [into],
38 }
39 }
40}