ronami_core/payloads/answer_web_app_query.rs
1//! Generated by `codegen_payloads`, do not edit by hand.
2
3use serde::Serialize;
4
5use crate::types::InlineQueryResult;
6use crate::types::SentWebAppMessage;
7
8impl_payload! {
9 /// Use this method to set the result of an interaction with a [Web App] and send a corresponding message on behalf of the user to the chat from which the query originated.
10 ///
11 /// [Web App]: https://core.telegram.org/bots/webapps
12 #[derive(Debug, PartialEq, Clone, Serialize)]
13 pub AnswerWebAppQuery (AnswerWebAppQuerySetters) => SentWebAppMessage {
14 required {
15 /// Unique identifier for the query to be answered
16 pub web_app_query_id: String [into],
17 /// A JSON-serialized object describing the message to be sent
18 pub result: InlineQueryResult,
19 }
20 }
21}