1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-06-01 07:25:23 +00:00

actualize UpdatesPollint

This commit is contained in:
InsanusMokrassar 2019-05-29 10:00:16 +08:00
parent 6b701c754e
commit cb351c53d1

View File

@ -21,8 +21,8 @@ fun RequestsExecutor.startGettingOfUpdates(
): UpdatesPoller {
return KtorUpdatesPoller(
this,
allowedUpdates ?: ALL_UPDATES_LIST,
timeoutMillis.toInt() / 1000,
allowedUpdates = allowedUpdates ?: ALL_UPDATES_LIST,
updatesReceiver = block
).also {
it.start(scope)