Add the field web_app_name to the WriteAccessAllowed

This commit is contained in:
Сырцев Вадим Игоревич 2024-06-15 15:02:10 +03:00
parent 693b5c08e5
commit 23aafb6821

View file

@ -1,9 +1,13 @@
use serde::{Deserialize, Serialize};
/// This object represents a service message about a user allowing a bot added
/// to the attachment menu to write messages. Currently holds no information.
/// This object represents a service message about a user allowing a bot to
/// write messages after adding the bot to the attachment menu or launching a
/// Web App from a link.
///
/// [The official docs](https://core.telegram.org/bots/api#writeaccessallowed).
#[serde_with_macros::skip_serializing_none]
#[derive(Clone, Debug, Eq, Hash, PartialEq, Serialize, Deserialize)]
pub struct WriteAccessAllowed {}
pub struct WriteAccessAllowed {
/// Name of the Web App which was launched from a link
pub web_app_name: Option<String>,
}