<h2class="">Parameters</h2><divdata-togglable="Parameters"><divclass="platform-hinted WithExtraAttributes"data-platform-hinted="data-platform-hinted"data-togglable="Parameters"><divclass="content sourceset-depenent-content"data-active=""data-togglable=":docs:dokkaHtml/commonMain"><divdata-togglable="Parameters"><divclass="table"data-togglable="Parameters"><divclass="table-row"data-filterable-current=":docs:dokkaHtml/commonMain"data-filterable-set=":docs:dokkaHtml/commonMain"><divclass="main-subrow keyValue WithExtraAttributes"><divclass=""><spanclass="inline-flex">initRequest</span></div><div><divclass="title"><divdata-togglable="Parameters"><pclass="paragraph">If not null, this request will be sent by <ahref="expect-flow.html">bot</a> before returning value</p></div></div></div></div></div><divclass="table-row"data-filterable-current=":docs:dokkaHtml/commonMain"data-filterable-set=":docs:dokkaHtml/commonMain"><divclass="main-subrow keyValue WithExtraAttributes"><divclass=""><spanclass="inline-flex">count</span></div><div><divclass="title"><divdata-togglable="Parameters"><pclass="paragraph">If set, result <spandata-unresolved-link="kotlinx.coroutines.flow/Flow///PointingToDeclaration/">Flow</span> will return <ahref="expect-flow.html">count</a> elements on each <spandata-unresolved-link="kotlinx.coroutines.flow/Flow/collect/#kotlinx.coroutines.flow.FlowCollector[TypeParam(bounds=[kotlin.Any?])]/PointingToDeclaration/">Flow.collect</span></p></div></div></div></div></div><divclass="table-row"data-filterable-current=":docs:dokkaHtml/commonMain"data-filterable-set=":docs:dokkaHtml/commonMain"><divclass="main-subrow keyValue WithExtraAttributes"><divclass=""><spanclass="inline-flex">errorFactory</span></div><div><divclass="title"><divdata-togglable="Parameters"><pclass="paragraph">If set, this factory will be used to produce requests in case when user have sent incorrect data</p></div></div></div></div></div><divclass="table-row"data-filterable-current=":docs:dokkaHtml/commonMain"data-filterable-set=":docs:dokkaHtml/commonMain"><divclass="main-subrow keyValue WithExtraAttributes"><divclass=""><spanclass="inline-flex">cancelRequestFactory</span></div><div><divclass="title"><divdata-togglable="Parameters"><pclass="paragraph">If set, this factory will be used to produce requests in case when it is required to say user that chain of scenario has been cancelled</p></div></div></div></div></div><divclass="table-row"data-filterable-current=":docs:dokkaHtml/commonMain"data-filterable-set=":docs:dokkaHtml/commonMain"><divclass="main-subrow keyValue WithExtraAttributes"><divclass=""><spanclass="inline-flex">cancelTrigger</span></div><div><divclass="title"><divdata-togglable="Parameters"><pclass="paragraph">When this trigger returns true, chain is cancelled</p></div></div></div></div></div><divclass="table-row"data-filterable-current=":docs:dokkaHtml/commonMain"data-filterable-set=":docs:dokkaHtml/commonMain"><divclass="main-subrow keyValue WithExtraAttributes"><divclass=""><spanclass="inline-flex">filter</span></div><div><divclass="title"><divdata-togglable="Parameters"><pclass="paragraph">It is main param, which will be called on each update. When it return not null, result will be returned as is, but when it returns null, then will be called <ahref="expect-flow.html">cancelTrigger</a> (if it will return true - <ahref="expect-flow.html">cancelRequestFactory</a> will be called too), <ahref="expect-flow.html">errorFactory</a> and then will be returned null</p></div></div></div></div></div></div></div></div></div></div></div>
<h2class="">Parameters</h2><divdata-togglable="Parameters"><divclass="platform-hinted WithExtraAttributes"data-platform-hinted="data-platform-hinted"data-togglable="Parameters"><divclass="content sourceset-depenent-content"data-active=""data-togglable=":docs:dokkaHtml/commonMain"><divdata-togglable="Parameters"><divclass="table"data-togglable="Parameters"><divclass="table-row"data-filterable-current=":docs:dokkaHtml/commonMain"data-filterable-set=":docs:dokkaHtml/commonMain"><divclass="main-subrow keyValue WithExtraAttributes"><divclass=""><spanclass="inline-flex">initRequest</span></div><div><divclass="title"><divdata-togglable="Parameters"><pclass="paragraph">If not null, this request will be sent by bot before returning value</p></div></div></div></div></div><divclass="table-row"data-filterable-current=":docs:dokkaHtml/commonMain"data-filterable-set=":docs:dokkaHtml/commonMain"><divclass="main-subrow keyValue WithExtraAttributes"><divclass=""><spanclass="inline-flex">count</span></div><div><divclass="title"><divdata-togglable="Parameters"><pclass="paragraph">If set, result <spandata-unresolved-link="kotlinx.coroutines.flow/Flow///PointingToDeclaration/">Flow</span> will return <ahref="expect-flow.html">count</a> elements on each <spandata-unresolved-link="kotlinx.coroutines.flow/Flow/collect/#kotlinx.coroutines.flow.FlowCollector[TypeParam(bounds=[kotlin.Any?])]/PointingToDeclaration/">Flow.collect</span></p></div></div></div></div></div><divclass="table-row"data-filterable-current=":docs:dokkaHtml/commonMain"data-filterable-set=":docs:dokkaHtml/commonMain"><divclass="main-subrow keyValue WithExtraAttributes"><divclass=""><spanclass="inline-flex">errorFactory</span></div><div><divclass="title"><divdata-togglable="Parameters"><pclass="paragraph">If set, this factory will be used to produce requests in case when user have sent incorrect data</p></div></div></div></div></div><divclass="table-row"data-filterable-current=":docs:dokkaHtml/commonMain"data-filterable-set=":docs:dokkaHtml/commonMain"><divclass="main-subrow keyValue WithExtraAttributes"><divclass=""><spanclass="inline-flex">cancelRequestFactory</span></div><div><divclass="title"><divdata-togglable="Parameters"><pclass="paragraph">If set, this factory will be used to produce requests in case when it is required to say user that chain of scenario has been cancelled</p></div></div></div></div></div><divclass="table-row"data-filterable-current=":docs:dokkaHtml/commonMain"data-filterable-set=":docs:dokkaHtml/commonMain"><divclass="main-subrow keyValue WithExtraAttributes"><divclass=""><spanclass="inline-flex">cancelTrigger</span></div><div><divclass="title"><divdata-togglable="Parameters"><pclass="paragraph">When this trigger returns true, chain is cancelled</p></div></div></div></div></div><divclass="table-row"data-filterable-current=":docs:dokkaHtml/commonMain"data-filterable-set=":docs:dokkaHtml/commonMain"><divclass="main-subrow keyValue WithExtraAttributes"><divclass=""><spanclass="inline-flex">filter</span></div><div><divclass="title"><divdata-togglable="Parameters"><pclass="paragraph">It is main param, which will be called on each update. When it return not null, result will be returned as is, but when it returns null, then will be called <ahref="expect-flow.html">cancelTrigger</a> (if it will return true - <ahref="expect-flow.html">cancelRequestFactory</a> will be called too), <ahref="expect-flow.html">errorFactory</a> and then will be returned null</p></div></div></div></div></div></div></div></div></div></div></div>