apid_telegram_bot/types/web_app/
web_app_data.rs

1use serde::{Deserialize, Serialize};
2
3/// Describes data sent from a [Web App](https://core.telegram.org/bots/webapps) to the bot.
4#[derive(Debug, PartialEq, Serialize, Deserialize)]
5pub struct WebAppData {
6    /// The data.
7    /// Be aware that a bad client can send arbitrary data in this field.
8    pub data: String,
9
10    /// Text of the *web_app* keyboard button from which the Web App was opened.
11    /// Be aware that a bad client can send arbitrary data in this field.
12    pub button_text: String,
13}