//! Generated by `codegen_payloads`, do not edit by hand.
use serde::Serialize;
use crate::types::{InlineQueryResult, InlineQueryResultsButton, True};
impl_payload! {
/// Use this method to send answers to an inline query. On success, _True_ is returned. No more than **50** results per query are allowed.
#[derive(Debug, PartialEq, Clone, Serialize)]
pub AnswerInlineQuery (AnswerInlineQuerySetters) => True {
required {
/// Unique identifier for the answered query
pub inline_query_id: String [into],
/// A JSON-serialized array of results for the inline query
pub results: Vec<InlineQueryResult> [collect],
}
optional {
/// The maximum amount of time in seconds that the result of the inline query may be cached on the server. Defaults to 300.
pub cache_time: u32,
/// Pass _True_, if results may be cached on the server side only for the user that sent the query. By default, results may be returned to any user who sends the same query
pub is_personal: bool,
/// Pass the offset that a client should send in the next query with the same text to receive more results. Pass an empty string if there are no more results or if you don't support pagination. Offset length can't exceed 64 bytes.
pub next_offset: String [into],
/// A JSON-serialized object describing a button to be shown above inline query results
pub button: InlineQueryResultsButton,
}
}
}