<divclass="content sourceset-depenent-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 wrapped"><spanclass="parameter indented"> 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 indented"> 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 indented"> 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 indented"> 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>null</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><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><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></div></div>