1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-11-17 22:03:48 +00:00
tgbotapi/docs/dev.inmo.tgbotapi.extensions.utils.updates.retrieving/start-listen-webhooks.md
2021-03-17 15:18:37 +00:00

7.4 KiB

//docs/dev.inmo.tgbotapi.extensions.utils.updates.retrieving/startListenWebhooks

startListenWebhooks

[jvm]
Content
fun startListenWebhooks(listenPort: Int, engineFactory: <*, *>, exceptionsHandler: <Unit>, listenHost: String = "0.0.0.0", listenRoute: String? = null, privateKeyConfig: WebhookPrivateKeyConfig? = null, scope: = CoroutineScope(Executors.newFixedThreadPool(4).asCoroutineDispatcher()), mediaGroupsDebounceTimeMillis: Long = 1000L, block: <Update>):
More info

Setting up ktor server

See also

jvm

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

Parameters

jvm

listenPort

port which will be listen by bot

listenRoute

address to listen by bot. If null - will be set up in root of host

scope

Scope which will be used for

privateKeyConfig

If configured - server will be created with . will be used otherwise