pub async fn answer_inline_query(
inline_query_id: i64,
is_personal: bool,
button: Option<InlineQueryResultsButton>,
results: Vec<InputInlineQueryResult>,
cache_time: i32,
next_offset: String,
client_id: i32,
) -> Result<(), Error>
Expand description
Sets the result of an inline query; for bots only
ยงArguments
inline_query_id
- Identifier of the inline queryis_personal
- Pass true if results may be cached and returned only for the user that sent the query. By default, results may be returned to any user who sends the same querybutton
- Button to be shown above inline query results; pass null if noneresults
- The results of the querycache_time
- Allowed time to cache the results of the query, in secondsnext_offset
- Offset for the next inline query; pass an empty string if there are no more resultsclient_id
- The client id to send the request to