From 8997454a46b930cdc13677d236bbf1e2435b51a1 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Tue, 26 Feb 2019 16:11:37 +0800 Subject: [PATCH] update order of arguments in setWebhook --- .../TelegramBotAPI/utils/extensions/Webhooks.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/com/github/insanusmokrassar/TelegramBotAPI/utils/extensions/Webhooks.kt b/src/main/kotlin/com/github/insanusmokrassar/TelegramBotAPI/utils/extensions/Webhooks.kt index 53778666ca..d32e13a163 100644 --- a/src/main/kotlin/com/github/insanusmokrassar/TelegramBotAPI/utils/extensions/Webhooks.kt +++ b/src/main/kotlin/com/github/insanusmokrassar/TelegramBotAPI/utils/extensions/Webhooks.kt @@ -111,10 +111,10 @@ suspend fun RequestsExecutor.setWebhook( url: String, port: Int, certificate: InputFile, + filter: UpdatesFilter, scope: CoroutineScope = CoroutineScope(Executors.newFixedThreadPool(4).asCoroutineDispatcher()), maxAllowedConnections: Int? = null, - engineFactory: ApplicationEngineFactory<*, *> = Netty, - filter: UpdatesFilter + engineFactory: ApplicationEngineFactory<*, *> = Netty ): Job = setWebhook( url, port,