start Listen Webhooks
fun startListenWebhooks( listenPort: Int, engineFactory: ApplicationEngineFactory<*, *>, exceptionsHandler: ExceptionHandler<Unit>, listenHost: String = "0.0.0.0", listenRoute: String? = null, privateKeyConfig: WebhookPrivateKeyConfig? = null, scope: CoroutineScope = CoroutineScope(Executors.newFixedThreadPool(4).asCoroutineDispatcher()), mediaGroupsDebounceTimeMillis: Long = 1000, block: UpdateReceiver<Update>): ApplicationEngine
Content copied to clipboard
Setting up ktor server
See also
dev. inmo. tgbotapi. updateshandlers. Flows Updates Filter
dev. inmo. tgbotapi. updateshandlers. Updates Filter
Parameters
listen Port
port which will be listen by bot
listen Route
address to listen by bot. If null - will be set up in root of host
scope
Scope which will be used for
private Key Config
If configured - server will be created with sslConnector. connector will be used otherwise