teloxide-fork-core 0.16.0

Core part of the `teloxide` library - telegram bot API client
Documentation
//! Generated by `codegen_payloads`, do not edit by hand.

use serde::Serialize;

use crate::types::{True, WidgetQueryId};

impl_payload! {
    /// Use this method to send an answer to a query from a widget. The query must be answered within 15 seconds. The answer is received only by the widget that sent the query and doesn't change data of the widget; use [`EditMessageWidgetData`] or [`EditSharedWidgetData`] to change it. On success, *True* is returned.
    ///
    /// [`EditMessageWidgetData`]: crate::payloads::EditMessageWidgetData
    /// [`EditSharedWidgetData`]: crate::payloads::EditSharedWidgetData
    #[derive(Debug, PartialEq, Eq, Hash, Clone, Serialize)]
    pub AnswerWidgetQuery (AnswerWidgetQuerySetters) => True {
        required {
            /// Unique identifier for the query to be answered
            pub widget_query_id: WidgetQueryId,
        }
        optional {
            /// Data to be returned to the widget, 0-1024 bytes
            pub data: String [into],
        }
    }
}