mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-11-22 16:23:48 +00:00
fixes in nullability of certificate for webhook
This commit is contained in:
parent
a393382a7c
commit
8bb2b5c218
@ -79,7 +79,7 @@ suspend fun RequestsExecutor.setWebhook(
|
|||||||
main()
|
main()
|
||||||
}
|
}
|
||||||
connector {
|
connector {
|
||||||
host = "localhost"
|
host = "0.0.0.0"
|
||||||
this.port = port
|
this.port = port
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -118,8 +118,8 @@ suspend fun RequestsExecutor.setWebhook(
|
|||||||
suspend fun RequestsExecutor.setWebhook(
|
suspend fun RequestsExecutor.setWebhook(
|
||||||
url: String,
|
url: String,
|
||||||
port: Int,
|
port: Int,
|
||||||
certificate: InputFile,
|
|
||||||
filter: UpdatesFilter,
|
filter: UpdatesFilter,
|
||||||
|
certificate: InputFile? = null,
|
||||||
scope: CoroutineScope = CoroutineScope(Executors.newFixedThreadPool(4).asCoroutineDispatcher()),
|
scope: CoroutineScope = CoroutineScope(Executors.newFixedThreadPool(4).asCoroutineDispatcher()),
|
||||||
maxAllowedConnections: Int? = null,
|
maxAllowedConnections: Int? = null,
|
||||||
engineFactory: ApplicationEngineFactory<*, *> = Netty
|
engineFactory: ApplicationEngineFactory<*, *> = Netty
|
||||||
|
Loading…
Reference in New Issue
Block a user