//! Generated by `codegen_payloads`, do not edit by hand.
use serde::Serialize;
use crate::types::{True, WidgetId};
impl_payload! {
/// Use this method to edit public data of a shared widget created by the bot. A shared widget can be edited at most once per second. On success, *True* is returned.
#[derive(Debug, PartialEq, Eq, Hash, Clone, Serialize)]
pub EditSharedWidgetData (EditSharedWidgetDataSetters) => True {
required {
/// Unique identifier of the shared widget
pub widget_id: WidgetId,
/// New public data of the widget, 0-1024 bytes; pass an empty string to remove the public data
pub public_data: String [into],
}
optional {
/// The maximum amount of time in seconds that the public data of the widget may be cached client-side; 5-3600. If omitted, then the current value is kept, which is 30 by default.
pub cache_time: u32,
}
}
}