1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-11-22 08:13:47 +00:00

a little fixes

This commit is contained in:
InsanusMokrassar 2019-03-12 08:20:40 +08:00
parent 1afa870f6d
commit c167c556ae

View File

@ -53,7 +53,7 @@ class UpdatesPoller(
lastHandledUpdate + 1, // incremented because offset counted from 1 when updates id from 0
allowed_updates = allowedUpdates
)
) ?.map {
).map {
it.asUpdate
}
}
@ -77,7 +77,8 @@ class UpdatesPoller(
while (isActive) {
delay(requestsDelayMillis)
try {
handleUpdates(getUpdates())
val updates = getUpdates()
handleUpdates(updates)
} catch (e: Exception) {
e.printStackTrace()
}