includeWebhookHandlingInRoute

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

Allows to include webhook in custom route everywhere in your server

Parameters

scope

Will be used for mapping of media groups

exceptionsHandler

Pass this parameter to set custom exception handler for getting updates

mediaGroupsDebounceTimeMillis

Will be used for calling of updateHandlerWithMediaGroupsAdaptation. 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

See also