Add from_request and from_attachment_menu fields to WriteAccessAllowed

This commit is contained in:
Andrey Brusnik 2024-07-15 19:58:18 +04:00
parent cef06d21de
commit c971d83330
No known key found for this signature in database
GPG key ID: D33232F28CFF442C

View file

@ -10,4 +10,10 @@ use serde::{Deserialize, Serialize};
pub struct WriteAccessAllowed { pub struct WriteAccessAllowed {
/// Name of the Web App which was launched from a link /// Name of the Web App which was launched from a link
pub web_app_name: Option<String>, pub web_app_name: Option<String>,
/// `true`, if the access was granted after the user accepted an explicit
/// request from a Web App sent by the method [requestWriteAccess](https://core.telegram.org/bots/webapps#initializing-mini-apps)
pub from_request: Option<bool>,
/// `true`, if the access was granted when the bot was added to the
/// attachment or side menu
pub from_attachment_menu: Option<bool>,
} }