includeWebhookHandlingInRoute

fun Route.includeWebhookHandlingInRoute(scope: CoroutineScope, exceptionsHandler: ExceptionHandler<Unit>? = null, mediaGroupsDebounceTimeMillis: Long = 1000L, block: UpdateReceiver<Update>)

Allows to include webhook in custom route everywhere in your server

See also

Parameters

scope

Will be used for mapping of media groups

exceptionsHandler

Pass this parameter to set custom exception handler for getting updates