1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-11-25 19:48:43 +00:00

update signature of KtoUpdatesPoller

This commit is contained in:
InsanusMokrassar 2019-05-29 09:59:05 +08:00
parent 03b0033ced
commit 6b701c754e

View File

@ -42,9 +42,9 @@ fun KtorUpdatesPoller(
return KtorUpdatesPoller( return KtorUpdatesPoller(
executor, executor,
allowedUpdates,
timeoutSeconds, timeoutSeconds,
oneTimeUpdatesLimit, oneTimeUpdatesLimit,
allowedUpdates,
exceptionsHandler, exceptionsHandler,
updatesReceiver updatesReceiver
) )
@ -52,9 +52,9 @@ fun KtorUpdatesPoller(
class KtorUpdatesPoller( class KtorUpdatesPoller(
private val executor: RequestsExecutor, private val executor: RequestsExecutor,
private val allowedUpdates: List<String> = ALL_UPDATES_LIST,
private val timeoutSeconds: Int? = null, private val timeoutSeconds: Int? = null,
private val oneTimeUpdatesLimit: Int? = null, private val oneTimeUpdatesLimit: Int? = null,
private val allowedUpdates: List<String> = ALL_UPDATES_LIST,
private val exceptionsHandler: (Exception) -> Boolean = { it.printStackTrace(); true }, private val exceptionsHandler: (Exception) -> Boolean = { it.printStackTrace(); true },
private val updatesReceiver: UpdateReceiver<Update> private val updatesReceiver: UpdateReceiver<Update>
) : UpdatesPoller { ) : UpdatesPoller {