<divclass="content sourceset-depenent-content"data-active=""data-togglable=":docs:dokkaHtml/commonMain"><divclass="symbol monospace"><spanclass="token keyword">open </span><spanclass="token keyword">suspend </span><spanclass="token keyword">fun </span><spanclass="token operator"><</span><spanclass="token keyword"></span><ahref="on-after-call-factory-make-call.html">T</a><spanclass="token operator"> : </span><ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a><spanclass="token operator">></span><ahref="on-after-call-factory-make-call.html"><spanclass="token function">onAfterCallFactoryMakeCall</span></a><spanclass="token punctuation">(</span><spanclass="parameters wrapped"><spanclass="parameter indented"> result<spanclass="token operator">: </span><ahref="on-after-call-factory-make-call.html">T</a><spanclass="token operator">?</span><spanclass="token punctuation">, </span></span><spanclass="parameter indented"> request<spanclass="token operator">: </span><ahref="../../dev.inmo.tgbotapi.requests.abstracts/-request/index.html">Request</a><spanclass="token operator"><</span><spanclass="token keyword"></span><ahref="on-after-call-factory-make-call.html">T</a><spanclass="token operator">></span><spanclass="token punctuation">, </span></span><spanclass="parameter indented"> potentialFactory<spanclass="token operator">: </span><ahref="../-ktor-call-factory/index.html">KtorCallFactory</a></span></span><spanclass="token punctuation">)</span><spanclass="token operator">: </span><ahref="on-after-call-factory-make-call.html">T</a><spanclass="token operator">?</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><divclass="brief "><pclass="paragraph">Will always be called after <ahref="on-after-call-factory-make-call.html">potentialFactory</a> has tried to make <ahref="on-after-call-factory-make-call.html">request</a> and got some <ahref="on-after-call-factory-make-call.html">result</a>. If returns value - that value will be returned from <ahref="../../dev.inmo.tgbotapi.bot/-requests-executor/execute.html">dev.inmo.tgbotapi.bot.RequestsExecutor.execute</a> instead</p></div></div></div>
<divclass="content sourceset-depenent-content"data-active=""data-togglable=":docs:dokkaHtml/commonMain"><divclass="symbol monospace"><spanclass="token keyword">open </span><spanclass="token keyword">suspend </span><spanclass="token keyword">fun </span><ahref="on-before-search-call-factory.html"><spanclass="token function">onBeforeSearchCallFactory</span></a><spanclass="token punctuation">(</span><spanclass="parameters "><spanclass="parameter ">request<spanclass="token operator">: </span><ahref="../../dev.inmo.tgbotapi.requests.abstracts/-request/index.html">Request</a><spanclass="token operator"><</span><spanclass="token operator">*</span><spanclass="token operator">></span><spanclass="token punctuation">, </span></span><spanclass="parameter ">callsFactories<spanclass="token operator">: </span><ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html">List</a><spanclass="token operator"><</span><spanclass="token keyword"></span><ahref="../-ktor-call-factory/index.html">KtorCallFactory</a><spanclass="token operator">></span></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><divclass="brief "><pclass="paragraph">Will always be called before requests executor will check all <ahref="on-before-search-call-factory.html">callsFactories</a> for an opportunity to make call of <ahref="on-before-search-call-factory.html">request</a></p></div></div></div>
<divclass="content sourceset-depenent-content"data-active=""data-togglable=":docs:dokkaHtml/commonMain"><divclass="symbol monospace"><spanclass="token keyword">open </span><spanclass="token keyword">suspend </span><spanclass="token keyword">fun </span><spanclass="token operator"><</span><spanclass="token keyword"></span><ahref="on-request-exception.html">T</a><spanclass="token operator"> : </span><ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a><spanclass="token operator">></span><ahref="on-request-exception.html"><spanclass="token function">onRequestException</span></a><spanclass="token punctuation">(</span><spanclass="parameters "><spanclass="parameter ">request<spanclass="token operator">: </span><ahref="../../dev.inmo.tgbotapi.requests.abstracts/-request/index.html">Request</a><spanclass="token operator"><</span><spanclass="token keyword"></span><ahref="on-request-exception.html">T</a><spanclass="token operator">></span><spanclass="token punctuation">, </span></span><spanclass="parameter ">t<spanclass="token operator">: </span><ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html">Throwable</a></span></span><spanclass="token punctuation">)</span><spanclass="token operator">: </span><ahref="on-request-exception.html">T</a><spanclass="token operator">?</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><divclass="brief "><pclass="paragraph">Will be called when any exception will happen due to the <ahref="on-request-exception.html">request</a> handling. If returns value - that value will be returned from <ahref="../../dev.inmo.tgbotapi.bot/-requests-executor/execute.html">dev.inmo.tgbotapi.bot.RequestsExecutor.execute</a> instead</p></div></div></div>
<divclass="content sourceset-depenent-content"data-active=""data-togglable=":docs:dokkaHtml/commonMain"><divclass="symbol monospace"><spanclass="token keyword">open </span><spanclass="token keyword">suspend </span><spanclass="token keyword">fun </span><spanclass="token operator"><</span><spanclass="token keyword"></span><ahref="on-request-result-absent.html">T</a><spanclass="token operator"> : </span><ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a><spanclass="token operator">></span><ahref="on-request-result-absent.html"><spanclass="token function">onRequestResultAbsent</span></a><spanclass="token punctuation">(</span><spanclass="parameters "><spanclass="parameter ">request<spanclass="token operator">: </span><ahref="../../dev.inmo.tgbotapi.requests.abstracts/-request/index.html">Request</a><spanclass="token operator"><</span><spanclass="token keyword"></span><ahref="on-request-result-absent.html">T</a><spanclass="token operator">></span><spanclass="token punctuation">, </span></span><spanclass="parameter ">callsFactories<spanclass="token operator">: </span><ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html">List</a><spanclass="token operator"><</span><spanclass="token keyword"></span><ahref="../-ktor-call-factory/index.html">KtorCallFactory</a><spanclass="token operator">></span></span></span><spanclass="token punctuation">)</span><spanclass="token operator">: </span><ahref="on-request-result-absent.html">T</a><spanclass="token operator">?</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><divclass="brief "><pclass="paragraph">Will be called when there is no <ahref="../-ktor-call-factory/index.html">KtorCallFactory</a> from <ahref="on-request-result-absent.html">callsFactories</a> which may handle <ahref="on-request-result-absent.html">request</a>. If returns value - that value will be returned from <ahref="../../dev.inmo.tgbotapi.bot/-requests-executor/execute.html">dev.inmo.tgbotapi.bot.RequestsExecutor.execute</a> instead</p></div></div></div>
<divclass="content sourceset-depenent-content"data-active=""data-togglable=":docs:dokkaHtml/commonMain"><divclass="symbol monospace"><spanclass="token keyword">open </span><spanclass="token keyword">suspend </span><spanclass="token keyword">fun </span><spanclass="token operator"><</span><spanclass="token keyword"></span><ahref="on-request-result-presented.html">T</a><spanclass="token operator"> : </span><ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a><spanclass="token operator">></span><ahref="on-request-result-presented.html"><spanclass="token function">onRequestResultPresented</span></a><spanclass="token punctuation">(</span><spanclass="parameters wrapped"><spanclass="parameter indented"> result<spanclass="token operator">: </span><ahref="on-request-result-presented.html">T</a><spanclass="token punctuation">, </span></span><spanclass="parameter indented"> request<spanclass="token operator">: </span><ahref="../../dev.inmo.tgbotapi.requests.abstracts/-request/index.html">Request</a><spanclass="token operator"><</span><spanclass="token keyword"></span><ahref="on-request-result-presented.html">T</a><spanclass="token operator">></span><spanclass="token punctuation">, </span></span><spanclass="parameter indented"> resultCallFactory<spanclass="token operator">: </span><ahref="../-ktor-call-factory/index.html">KtorCallFactory</a><spanclass="token punctuation">, </span></span><spanclass="parameter indented"> callsFactories<spanclass="token operator">: </span><ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html">List</a><spanclass="token operator"><</span><spanclass="token keyword"></span><ahref="../-ktor-call-factory/index.html">KtorCallFactory</a><spanclass="token operator">></span></span></span><spanclass="token punctuation">)</span><spanclass="token operator">: </span><ahref="on-request-result-presented.html">T</a><spanclass="token operator">?</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><divclass="brief "><pclass="paragraph">Will be called when <ahref="on-request-result-presented.html">resultCallFactory</a> is the <ahref="../-ktor-call-factory/index.html">KtorCallFactory</a> from <ahref="on-request-result-presented.html">callsFactories</a> which has successfully handled <ahref="on-request-result-presented.html">request</a> and returned <ahref="on-request-result-presented.html">result</a>. If returns value - that value will be returned from <ahref="../../dev.inmo.tgbotapi.bot/-requests-executor/execute.html">dev.inmo.tgbotapi.bot.RequestsExecutor.execute</a> instead</p></div></div></div>
<divclass="content sourceset-depenent-content"data-active=""data-togglable=":docs:dokkaHtml/commonMain"><divclass="symbol monospace"><spanclass="token keyword">open </span><spanclass="token keyword">suspend </span><spanclass="token keyword">fun </span><spanclass="token operator"><</span><spanclass="token keyword"></span><ahref="on-request-return-result.html">T</a><spanclass="token operator"> : </span><ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a><spanclass="token operator">></span><ahref="on-request-return-result.html"><spanclass="token function">onRequestReturnResult</span></a><spanclass="token punctuation">(</span><spanclass="parameters wrapped"><spanclass="parameter indented"> result<spanclass="token operator">: </span><ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-result/index.html">Result</a><spanclass="token operator"><</span><spanclass="token keyword"></span><ahref="on-request-return-result.html">T</a><spanclass="token operator">></span><spanclass="token punctuation">, </span></span><spanclass="parameter indented"> request<spanclass="token operator">: </span><ahref="../../dev.inmo.tgbotapi.requests.abstracts/-request/index.html">Request</a><spanclass="token operator"><</span><spanclass="token keyword"></span><ahref="on-request-return-result.html">T</a><spanclass="token operator">></span><spanclass="token punctuation">, </span></span><spanclass="parameter indented"> callsFactories<spanclass="token operator">: </span><ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html">List</a><spanclass="token operator"><</span><spanclass="token keyword"></span><ahref="../-ktor-call-factory/index.html">KtorCallFactory</a><spanclass="token operator">></span></span></span><spanclass="token punctuation">)</span><spanclass="token operator">: </span><ahref="on-request-return-result.html">T</a><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><divclass="brief "><pclass="paragraph">This step will be called when the <ahref="on-request-return-result.html">result</a> has been retrieved (or exception has happened). If returns value - that value will be returned from <ahref="../../dev.inmo.tgbotapi.bot/-requests-executor/execute.html">dev.inmo.tgbotapi.bot.RequestsExecutor.execute</a> instead</p></div></div></div>