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(
|
||||
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 {
|
||||
|
Loading…
Reference in New Issue
Block a user