<divclass="content sourceset-dependent-content"data-active=""data-togglable=":docs:dokkaHtml/jsMain"><divclass="symbol monospace"><spanclass="token keyword">inline </span><spanclass="token keyword">fun </span><ahref="send-data-or-work-with-query-id.html"><spanclass="token function">sendDataOrWorkWithQueryId</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></div><h4class="">Parameters</h4><divclass="table"><divclass="table-row"data-filterable-current=":docs:dokkaHtml/jsMain"data-filterable-set=":docs:dokkaHtml/jsMain"><divclass="main-subrow keyValue "><divclass=""><spanclass="inline-flex"><div><u><span>on</span><wbr></wbr><span>Send</span><wbr></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=":docs:dokkaHtml/jsMain"data-filterable-set=":docs:dokkaHtml/jsMain"><divclass="main-subrow keyValue "><divclass=""><spanclass="inline-flex"><div><u><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></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>