1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2025-09-02 14:49:47 +00:00

fixes in nullability of certificate for webhook

This commit is contained in:
2019-03-04 14:24:07 +08:00
parent a393382a7c
commit 8bb2b5c218

View File

@@ -79,7 +79,7 @@ suspend fun RequestsExecutor.setWebhook(
main()
}
connector {
host = "localhost"
host = "0.0.0.0"
this.port = port
}
}
@@ -118,8 +118,8 @@ suspend fun RequestsExecutor.setWebhook(
suspend fun RequestsExecutor.setWebhook(
url: String,
port: Int,
certificate: InputFile,
filter: UpdatesFilter,
certificate: InputFile? = null,
scope: CoroutineScope = CoroutineScope(Executors.newFixedThreadPool(4).asCoroutineDispatcher()),
maxAllowedConnections: Int? = null,
engineFactory: ApplicationEngineFactory<*, *> = Netty