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