<divclass="content sourceset-depenent-content"data-active=""data-togglable=":docs:dokkaHtml/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><spanclass="token keyword"></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><spanclass="token keyword"></span><spandata-unresolved-link="dev.inmo.tgbotapi.types/WebAppQueryId///PointingToDeclaration/">WebAppQueryId</span><spanclass="token punctuation">)</span><spanclass="token operator"> -></span><spanclass="token keyword"></span><ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a></span></span><spanclass="token punctuation">)</span><spanclass="top-right-position"><spanclass="copy-icon"></span><divclass="copy-popup-wrapper popup-to-left"><spanclass="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><h2class="">Parameters</h2><divdata-togglable="Parameters"><divclass="table"data-togglable="Parameters"><divclass="table-row"data-filterable-current=":docs:dokkaHtml/jsMain"data-filterable-set=":docs:dokkaHtml/jsMain"><divclass="main-subrow keyValue WithExtraAttributes"><divclass=""><spanclass="inline-flex"><div><span>on</span><wbr></wbr><span>Send</span><wbr></wbr><span><span>Data</span></span></div></span></div><div><divclass="title"><divdata-togglable="Parameters"><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></div><divclass="table-row"data-filterable-current=":docs:dokkaHtml/jsMain"data-filterable-set=":docs:dokkaHtml/jsMain"><divclass="main-subrow keyValue WithExtraAttributes"><divclass=""><spanclass="inline-flex"><div><span>on</span><wbr></wbr><span>Answer</span><wbr></wbr><span>Web</span><wbr></wbr><span>App</span><wbr></wbr><span><span>Query</span></span></div></span></div><div><divclass="title"><divdata-togglable="Parameters"><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></div></div>