From 23aafb68219fc6618745a944d9a5884236b9d715 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A1=D1=8B=D1=80=D1=86=D0=B5=D0=B2=20=D0=92=D0=B0=D0=B4?= =?UTF-8?q?=D0=B8=D0=BC=20=D0=98=D0=B3=D0=BE=D1=80=D0=B5=D0=B2=D0=B8=D1=87?= Date: Sat, 15 Jun 2024 15:02:10 +0300 Subject: [PATCH] Add the field web_app_name to the WriteAccessAllowed --- crates/teloxide-core/src/types/write_access_allowed.rs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/crates/teloxide-core/src/types/write_access_allowed.rs b/crates/teloxide-core/src/types/write_access_allowed.rs index bbba3731..a0129caf 100644 --- a/crates/teloxide-core/src/types/write_access_allowed.rs +++ b/crates/teloxide-core/src/types/write_access_allowed.rs @@ -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, +}