mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-11-17 22:03:48 +00:00
7.8 KiB
7.8 KiB
//docs/dev.inmo.tgbotapi.extensions.utils.updates.retrieving/setWebhookInfoAndStartListenWebhooks
setWebhookInfoAndStartListenWebhooks
[jvm]
Content
suspend fun RequestsExecutor.setWebhookInfoAndStartListenWebhooks(listenPort: Int, engineFactory: <*, *>, setWebhookRequest: SetWebhookRequest, exceptionsHandler: <Unit> = {}, listenHost: String = "0.0.0.0", listenRoute: String = "/", privateKeyConfig: WebhookPrivateKeyConfig? = null, scope: = CoroutineScope(Executors.newFixedThreadPool(4).asCoroutineDispatcher()), mediaGroupsDebounceTimeMillis: Long = 1000L, block: <Update>):
More info
Setting up ktor server, set webhook info via SetWebhookRequest request.
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 |
scope | Scope which will be used for |