answer_web_app_query¶
-
template<class Agent>
api_result<sent_web_app_message_t, Agent&&> answer_web_app_query(Agent &&agent, answer_web_app_query_args_t args)¶
-
template<class Agent, class F>
void answer_web_app_query(Agent &&agent, answer_web_app_query_args_t args, F &&callback)¶ agent
is any object satisfying agent concept.callback
is any callable object acceptingexpected<sent_web_app_message_t>
.Use this method to set the result of an interaction with a Web App and send a corresponding message on behalf of the user to the chat from which the query originated. On success, a SentWebAppMessage object is returned.
-
struct answer_web_app_query_args_t¶
Arguments that should be passed to
answer_web_app_query()
.Unique identifier for the query to be answered
-
inline_query_result_t result¶
A JSON-serialized object describing the message to be sent
-
inline_query_result_t result¶