<divclass="platform-hinted "data-platform-hinted="data-platform-hinted"><divclass="content sourceset-dependent-content"data-active=""data-togglable=":tgbotapi.webapps:dokkaHtmlPartial/jsMain"><divclass="symbol monospace"><spanclass="token keyword">inline </span><spanclass="token keyword">fun </span><ahref="handle-result.html"><spanclass="token function">handleResult</span></a><spanclass="token punctuation">(</span><spanclass="parameters "><spanclass="parameter ">onSendData<spanclass="token operator">: </span><spanclass="token punctuation">(</span><spanclass="token punctuation">)</span><spanclass="token operator"> -></span><ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a><spanclass="token operator">?</span><spanclass="token punctuation">, </span></span><spanclass="parameter ">onAnswerWebAppQuery<spanclass="token operator">: </span><spanclass="token punctuation">(</span><ahref="../../tgbotapi.core/dev.inmo.tgbotapi.types/-web-app-query-id/index.html">WebAppQueryId</a><spanclass="token punctuation">)</span><spanclass="token operator"> -></span><ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a></span></span><spanclass="token punctuation">)</span></div><h4class="">Parameters</h4><divclass="table"><divclass="table-row"data-filterable-current=":tgbotapi.webapps:dokkaHtmlPartial/jsMain"data-filterable-set=":tgbotapi.webapps:dokkaHtmlPartial/jsMain"><divclass="main-subrow keyValue "><divclass=""><spanclass="inline-flex"><div><u><span>on</span><wbr><span>Send</span><wbr><span><span>Data</span></span></u></div></span></div><div><divclass="title"><pclass="paragraph">Should return the data which must be used in <ahref="-web-app/send-data.html">WebApp.sendData</a>. If returns null, data will not be sent</p></div></div></div></div><divclass="table-row"data-filterable-current=":tgbotapi.webapps:dokkaHtmlPartial/jsMain"data-filterable-set=":tgbotapi.webapps:dokkaHtmlPartial/jsMain"><divclass="main-subrow keyValue "><divclass=""><spanclass="inline-flex"><div><u><span>on</span><wbr><span>Answer</span><wbr><span>Web</span><wbr><span>App</span><wbr><span><span>Query</span></span></u></div></span></div><div><divclass="title"><pclass="paragraph">In case if <ahref="-web-app-init-data/query-id.html">WebAppInitData.queryId</a> is presented in <ahref="-web-app/init-data-unsafe.html">WebApp.initDataUnsafe</a>, will be called that callback. Before and after calling of this callback will not be used any method of answering to the telegram system, so, you must use something like <ahref="answer-web-app-query.html">answerWebAppQuery</a> by yourself to send the result</p></div></div></div></div></div></div></div>