<divclass="main-content"data-page-type="member"id="content"pageids="tgbotapi.utils::dev.inmo.tgbotapi.extensions.utils.updates.retrieving//includeWebhookHandlingInRouteWithFlows/io.ktor.server.routing.Route#kotlinx.coroutines.CoroutineScope#[Error type: Unresolved type for ExceptionHandler<Unit>][kotlin.Unit]?#kotlin.Long#kotlin.Function1[dev.inmo.tgbotapi.updateshandlers.FlowsUpdatesFilter,kotlin.Unit]/PointingToDeclaration//1692707308">
<divclass="content sourceset-dependent-content"data-active=""data-togglable=":tgbotapi.utils:dokkaHtmlPartial/jvmMain"><divclass="symbol monospace"><spanclass="token keyword">fun </span><spandata-unresolved-link="io.ktor.server.routing/Route///PointingToDeclaration/">Route</span><spanclass="token punctuation">.</span><ahref="include-webhook-handling-in-route-with-flows.html"><spanclass="token function">includeWebhookHandlingInRouteWithFlows</span></a><spanclass="token punctuation">(</span><spanclass="parameters "><spanclass="parameter ">scope<spanclass="token operator">: </span><spandata-unresolved-link="kotlinx.coroutines/CoroutineScope///PointingToDeclaration/">CoroutineScope</span><spanclass="token punctuation">, </span></span><spanclass="parameter ">exceptionsHandler<spanclass="token operator">: </span><spandata-unresolved-link="/<Error class: unknown class>///PointingToDeclaration/"><Error class: unknown class></span><spanclass="token operator"><</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 ">mediaGroupsDebounceTimeMillis<spanclass="token operator">: </span><ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html">Long</a><spanclass="token operator"> = </span><spanclass="token constant">1000</span><spanclass="token punctuation">, </span></span><spanclass="parameter ">block<spanclass="token operator">: </span><ahref="../../tgbotapi.core/dev.inmo.tgbotapi.updateshandlers/-flows-updates-filter/index.html">FlowsUpdatesFilter</a><spanclass="token punctuation">.</span><spanclass="token punctuation">(</span><spanclass="token punctuation">)</span><spanclass="token operator"> -></span><ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a></span></span><spanclass="token punctuation">)</span></div><h4class="">Parameters</h4><divclass="table"><divclass="table-row"data-filterable-current=":tgbotapi.utils:dokkaHtmlPartial/jvmMain"data-filterable-set=":tgbotapi.utils:dokkaHtmlPartial/jvmMain"><divclass="main-subrow keyValue "><divclass=""><spanclass="inline-flex"><div><u><span>media</span><wbr><span>Groups</span><wbr><span>Debounce</span><wbr><span>Time</span><wbr><span><span>Millis</span></span></u></div></span></div><div><divclass="title"><pclass="paragraph">Will be used for calling of <ahref="../../tgbotapi.utils/dev.inmo.tgbotapi.extensions.utils.updates.retrieving/index.html">updateHandlerWithMediaGroupsAdaptation</a>. Pass null in case you wish to enable classic way of updates handling, but in that mode some media group messages can be retrieved in different updates</p></div></div></div></div></div></div></div>