From 6b701c754e24dd35e35771da4049a9be0f49c9df Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Wed, 29 May 2019 09:59:05 +0800 Subject: [PATCH] update signature of KtoUpdatesPoller --- .../TelegramBotAPI/updateshandlers/KtorUpdatesPoller.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/com/github/insanusmokrassar/TelegramBotAPI/updateshandlers/KtorUpdatesPoller.kt b/src/main/kotlin/com/github/insanusmokrassar/TelegramBotAPI/updateshandlers/KtorUpdatesPoller.kt index 4babe89cc6..6c6482f549 100644 --- a/src/main/kotlin/com/github/insanusmokrassar/TelegramBotAPI/updateshandlers/KtorUpdatesPoller.kt +++ b/src/main/kotlin/com/github/insanusmokrassar/TelegramBotAPI/updateshandlers/KtorUpdatesPoller.kt @@ -42,9 +42,9 @@ fun KtorUpdatesPoller( return KtorUpdatesPoller( executor, - allowedUpdates, timeoutSeconds, oneTimeUpdatesLimit, + allowedUpdates, exceptionsHandler, updatesReceiver ) @@ -52,9 +52,9 @@ fun KtorUpdatesPoller( class KtorUpdatesPoller( private val executor: RequestsExecutor, - private val allowedUpdates: List = ALL_UPDATES_LIST, private val timeoutSeconds: Int? = null, private val oneTimeUpdatesLimit: Int? = null, + private val allowedUpdates: List = ALL_UPDATES_LIST, private val exceptionsHandler: (Exception) -> Boolean = { it.printStackTrace(); true }, private val updatesReceiver: UpdateReceiver ) : UpdatesPoller {