1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-06-18 07:45:27 +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(
executor,
allowedUpdates,
timeoutSeconds,
oneTimeUpdatesLimit,
allowedUpdates,
exceptionsHandler,
updatesReceiver
)
@ -52,9 +52,9 @@ fun KtorUpdatesPoller(
class KtorUpdatesPoller(
private val executor: RequestsExecutor,
private val allowedUpdates: List<String> = ALL_UPDATES_LIST,
private val timeoutSeconds: 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 updatesReceiver: UpdateReceiver<Update>
) : UpdatesPoller {