<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"></span><spanclass="token keyword">fun </span><ahref="../dev.inmo.tgbotapi.bot/index.html#-1167693203%2FClasslikes%2F-1982836883">TelegramBot</a><spanclass="token punctuation">.</span><ahref="create-accumulated-updates-retriever-flow.html"><spanclass="token function">createAccumulatedUpdatesRetrieverFlow</span></a><spanclass="token punctuation">(</span><spanclass="parameters "><spanclass="parameter ">avoidInlineQueries<spanclass="token operator">: </span><ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a><spanclass="token operator"> = </span><spanclass="token boolean">false</span><spanclass="token punctuation">, </span></span><spanclass="parameter ">avoidCallbackQueries<spanclass="token operator">: </span><ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a><spanclass="token operator"> = </span><spanclass="token boolean">false</span><spanclass="token punctuation">, </span></span><spanclass="parameter ">exceptionsHandler<spanclass="token operator">: </span><spandata-unresolved-link="dev.inmo.micro_utils.coroutines/ExceptionHandler///PointingToDeclaration/">ExceptionHandler</span><spanclass="token operator"><</span><spanclass="token keyword"></span><ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a><spanclass="token operator">></span><spanclass="token operator">?</span><spanclass="token operator"> = </span>null<spanclass="token punctuation">, </span></span><spanclass="parameter ">allowedUpdates<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="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a><spanclass="token operator">></span><spanclass="token operator">?</span><spanclass="token operator"> = </span>ALL_UPDATES_LIST<spanclass="token punctuation">, </span></span><spanclass="parameter ">autoDisableWebhooks<spanclass="token operator">: </span><ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a><spanclass="token operator"> = </span><spanclass="token boolean">true</span></span></span><spanclass="token punctuation">)</span><spanclass="token operator">: </span><spandata-unresolved-link="kotlinx.coroutines.flow/Flow///PointingToDeclaration/">Flow</span><spanclass="token operator"><</span><spanclass="token keyword"></span><ahref="../dev.inmo.tgbotapi.types.update.abstracts/-update/index.html">Update</a><spanclass="token operator">></span></div><spanclass="kdoc-tag"><h4class="">Return</h4><pclass="paragraph"><spandata-unresolved-link="kotlinx.coroutines.flow/Flow///PointingToDeclaration/">kotlinx.coroutines.flow.Flow</span> which will emit updates to the collector while they will be accumulated. Works the same as <ahref="long-polling-flow.html">longPollingFlow</a>, but it will cancel the flow after the first one <spandata-unresolved-link="io.ktor.client.plugins/HttpRequestTimeoutException///PointingToDeclaration/">HttpRequestTimeoutException</span></p></span></div></div>