Skip to main content

ronami_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;
6use crate::types::PreparedInlineMessage;
7use crate::types::UserId;
8
9impl_payload! {
10    /// Stores a message that can be sent by a user of a Mini App. Returns a [`PreparedInlineMessage`] object.
11    ///
12    /// [`PreparedInlineMessage`]: crate::types::PreparedInlineMessage
13    #[derive(Debug, PartialEq, Clone, Serialize)]
14    pub SavePreparedInlineMessage (SavePreparedInlineMessageSetters) => PreparedInlineMessage {
15        required {
16            /// Unique identifier of the target user that can use the prepared message
17            pub user_id: UserId,
18            /// An object describing the message to be sent
19            pub result: InlineQueryResult,
20        }
21        optional {
22            /// Pass `true`, if the message can be sent to private chats with users
23            pub allow_user_chats: bool,
24            /// Pass `true`, if the message can be sent to private chats with bots
25            pub allow_bot_chats: bool,
26            /// Pass `true`, if the message can be sent to group and supergroup chats
27            pub allow_group_chats: bool,
28            /// Pass `true`, if the message can be sent to channel chats
29            pub allow_channel_chats: bool,
30        }
31    }
32}