docs

# setWebhookInfoAndStartListenWebhooks

suspend fun RequestsExecutor . setWebhookInfoAndStartListenWebhooks ( listenPort: Int , engineFactory: ApplicationEngineFactory<*, *>, setWebhookRequest: SetWebhookRequest, exceptionsHandler: ExceptionHandler< Unit > = {}, listenHost: String = "0.0.0.0", listenRoute: String = "/", privateKeyConfig: WebhookPrivateKeyConfig ? = null, scope: CoroutineScope = CoroutineScope(Executors.newFixedThreadPool(4).asCoroutineDispatcher()), mediaGroupsDebounceTimeMillis: Long = 1000, additionalApplicationEngineEnvironmentConfigurator: ApplicationEngineEnvironmentBuilder.() -> Unit = {}, block: UpdateReceiver<Update>): ApplicationEngine
Content copied to clipboard

Setting up ktor server, set webhook info via SetWebhookRequest request.

## See also

dev.inmo.tgbotapi.updateshandlers.FlowsUpdatesFilter
dev.inmo.tgbotapi.updateshandlers.UpdatesFilter

## Parameters

listenPort

port which will be listen by bot

listenRoute

address to listen by bot

scope

Scope which will be used for