//! Generated by `codegen_payloads`, do not edit by hand.
use serde::Serialize;
use crate::types::{MessageId, Recipient, True};
impl_payload! {
/// Use this method to edit data of a widget in a message sent by the bot or via the bot (for inline bots). Public data of a shared widget can be changed at most once per second. On success, *True* is returned.
///
/// See also: [`EditMessageWidgetDataInline`](crate::payloads::EditMessageWidgetDataInline)
#[derive(Debug, PartialEq, Eq, Hash, Clone, Serialize)]
pub EditMessageWidgetData (EditMessageWidgetDataSetters) => True {
required {
/// Unique identifier for the target chat or username of the target supergroup in the format `@username`.
pub chat_id: Recipient [into],
/// Identifier of the message with the widget.
#[serde(flatten)]
pub message_id: MessageId,
}
optional {
/// New public data of the widget, 0-1024 bytes; pass an empty string to remove the public data. If omitted, then the public data isn't changed.
pub public_data: String [into],
/// New data of the widget, which is specific to the message, 0-1024 bytes; pass an empty string to remove the data. If omitted, then the data isn't changed.
pub chat_data: String [into],
}
}
}