teloxide_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, SentWebAppMessage};
6
7impl_payload! {
8 /// 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.
9 ///
10 /// [Web App]: https://core.telegram.org/bots/webapps
11 #[derive(Debug, PartialEq, Clone, Serialize)]
12 pub AnswerWebAppQuery (AnswerWebAppQuerySetters) => SentWebAppMessage {
13 required {
14 /// Unique identifier for the query to be answered
15 pub web_app_query_id: String [into],
16 /// A JSON-serialized object describing the message to be sent
17 pub result: InlineQueryResult,
18 }
19 }
20}