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:
parent
03b0033ced
commit
6b701c754e
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user