mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-22 14:35:36 +01:00
Add from_request
and from_attachment_menu
fields to WriteAccessAllowed
This commit is contained in:
parent
cef06d21de
commit
c971d83330
1 changed files with 6 additions and 0 deletions
|
@ -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>,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue