use serde::{Deserialize, Serialize};
/// <https://core.telegram.org/bots/api#writeaccessallowed>
/// This object represents a service message about a user allowing a bot to write messages after adding it to the attachment menu, launching a Web App from a link, or accepting an explicit request from a Web App sent by the method requestWriteAccess.
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq)]
pub struct WriteAccessAllowed {
#[serde(skip_serializing_if = "Option::is_none")]
pub from_request: Option<bool>,
#[serde(skip_serializing_if = "Option::is_none")]
pub web_app_name: Option<String>,
#[serde(skip_serializing_if = "Option::is_none")]
pub from_attachment_menu: Option<bool>,
}