//[docs](../../index.md)/[dev.inmo.tgbotapi.extensions.utils.updates.retrieving](index.md)/[includeWebhookHandlingInRoute](include-webhook-handling-in-route.md) # includeWebhookHandlingInRoute [jvm] Content fun .[includeWebhookHandlingInRoute](include-webhook-handling-in-route.md)(scope: , exceptionsHandler: <[Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)>? = null, mediaGroupsDebounceTimeMillis: [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html) = 1000L, block: <[Update](../dev.inmo.tgbotapi.types.update.abstracts/-update/index.md)>) More info Allows to include webhook in custom route everywhere in your server ## See also jvm | | | |---|---| | [dev.inmo.tgbotapi.updateshandlers.FlowsUpdatesFilter](../dev.inmo.tgbotapi.updateshandlers/-flows-updates-filter/index.md)| | | [dev.inmo.tgbotapi.updateshandlers.UpdatesFilter](../dev.inmo.tgbotapi.updateshandlers/-updates-filter/as-update-receiver.md)| | ## Parameters jvm | | | |---|---| | scope|

Will be used for mapping of media groups

| | exceptionsHandler|

Pass this parameter to set custom exception handler for getting updates

| | block|

Some receiver block like [dev.inmo.tgbotapi.updateshandlers.FlowsUpdatesFilter](../dev.inmo.tgbotapi.updateshandlers/-flows-updates-filter/index.md)

|