<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.html"><spanclass="token function">includeWebhookHandlingInRoute</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="dev.inmo.micro_utils.coroutines/ExceptionHandler///PointingToDeclaration/">ExceptionHandler</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/-update-receiver/index.html">UpdateReceiver</a><spanclass="token operator"><</span><ahref="../../tgbotapi.core/dev.inmo.tgbotapi.types.update.abstracts/-update/index.html">Update</a><spanclass="token operator">></span></span></span><spanclass="token punctuation">)</span></div><pclass="paragraph">Allows to include webhook in custom route everywhere in your server</p><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><span>scope</span></span></u></div></span></div><div><divclass="title"><pclass="paragraph">Will be used for mapping of media groups</p></div></div></div></div><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>exceptions</span><wbr><span><span>Handler</span></span></u></div></span></div><div><divclass="title"><pclass="paragraph">Pass this parameter to set custom exception handler for getting updates</p></div></div></div></div><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><span>block</span></span></u></div></span></div><div><divclass="title"><pclass="paragraph">Some receiver block like <ahref="../../tgbotapi.core/dev.inmo.tgbotapi.updateshandlers/-flows-updates-filter/index.html">dev.inmo.tgbotapi.updateshandlers.FlowsUpdatesFilter</a></p></div></div></div></div><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="update-handler-with-media-groups-adaptation.html">updateHandlerWithMediaGroupsAdaptation</a>. Pass null in case you wish