answer_inline_query

template<class Agent>
api_result<boolean_t, Agent&&> answer_inline_query(Agent &&agent, answer_inline_query_args_t args)
template<class Agent, class F>
void answer_inline_query(Agent &&agent, answer_inline_query_args_t args, F &&callback)

agent is any object satisfying agent concept.

callback is any callable object accepting expected<boolean_t>.

Use this method to send answers to an inline query. On success, True is returned. No more than 50 results per query are allowed.

struct answer_inline_query_args_t

Arguments that should be passed to answer_inline_query().

string_t inline_query_id

Unique identifier for the answered query

array_t<inline_query_result_t> results

A JSON-serialized array of results for the inline query

optional_t<integer_t> cache_time

The maximum amount of time in seconds that the result of the inline query may be cached on the server. Defaults to 300.

optional_t<boolean_t> is_personal

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.

optional_t<string_t> next_offset

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.

optional_t<inline_query_results_button_t> button

A JSON-serialized object describing a button to be shown above inline query results