<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>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>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="../../dev.inmo.tgbotapi.bot.Ktor/-ktor-call-factory/index.html">KtorCallFactory</a><spanclass="token operator">></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><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>