mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2025-09-02 22:59:48 +00:00
fixes in nullability of certificate for webhook
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user