teloxide_core/payloads/save_prepared_inline_message.rs
1//! Generated by `codegen_payloads`, do not edit by hand.
2
3use serde::Serialize;
4
5use crate::types::{InlineQueryResult, PreparedInlineMessage, UserId};
6
7impl_payload! {
8 /// Stores a message that can be sent by a user of a Mini App. Returns a [`PreparedInlineMessage`] object.
9 ///
10 /// [`PreparedInlineMessage`]: crate::types::PreparedInlineMessage
11 #[derive(Debug, PartialEq, Clone, Serialize)]
12 pub SavePreparedInlineMessage (SavePreparedInlineMessageSetters) => PreparedInlineMessage {
13 required {
14 /// Unique identifier of the target user that can use the prepared message
15 pub user_id: UserId,
16 /// An object describing the message to be sent
17 pub result: InlineQueryResult,
18 }
19 optional {
20 /// Pass `true`, if the message can be sent to private chats with users
21 pub allow_user_chats: bool,
22 /// Pass `true`, if the message can be sent to private chats with bots
23 pub allow_bot_chats: bool,
24 /// Pass `true`, if the message can be sent to group and supergroup chats
25 pub allow_group_chats: bool,
26 /// Pass `true`, if the message can be sent to channel chats
27 pub allow_channel_chats: bool,
28 }
29 }
30}