<divclass="platform-hinted "data-platform-hinted="data-platform-hinted"><divclass="content sourceset-dependent-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></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>