setWebhookInfoAndStartListenWebhooks
suspend fun <TEngine : ApplicationEngine, TConfiguration : ApplicationEngine.Configuration> RequestsExecutor.setWebhookInfoAndStartListenWebhooks(listenPort: Int, engineFactory: ApplicationEngineFactory<TEngine, TConfiguration>, setWebhookRequest: SetWebhookRequest, exceptionsHandler: <Error class: unknown class><Unit> = {}, listenHost: String = "0.0.0.0", listenRoute: String = "/", privateKeyConfig: WebhookPrivateKeyConfig? = null, scope: CoroutineScope = CoroutineScope(Executors.newFixedThreadPool(4).asCoroutineDispatcher()), mediaGroupsDebounceTimeMillis: Long = 1000, additionalApplicationEnvironmentConfigurator: ApplicationEnvironmentBuilder.() -> Unit = {}, additionalEngineConfigurator: TConfiguration.() -> Unit = {}, block: <Error class: unknown class><Update>): EmbeddedServer<TEngine, TConfiguration>
Setting up ktor server, set webhook info via SetWebhookRequest request.
Parameters
listenPort
port which will be listen by bot
listenRoute
address to listen by bot
scope
Scope which will be used for
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