mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-22 14:35:36 +01:00
Add the field web_app_name to the WriteAccessAllowed
This commit is contained in:
parent
693b5c08e5
commit
23aafb6821
1 changed files with 7 additions and 3 deletions
|
@ -1,9 +1,13 @@
|
||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
|
|
||||||
/// This object represents a service message about a user allowing a bot added
|
/// This object represents a service message about a user allowing a bot to
|
||||||
/// to the attachment menu to write messages. Currently holds no information.
|
/// 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).
|
/// [The official docs](https://core.telegram.org/bots/api#writeaccessallowed).
|
||||||
#[serde_with_macros::skip_serializing_none]
|
#[serde_with_macros::skip_serializing_none]
|
||||||
#[derive(Clone, Debug, Eq, Hash, PartialEq, Serialize, Deserialize)]
|
#[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>,
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue