mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-11-22 16:23:48 +00:00
a little fixes
This commit is contained in:
parent
1afa870f6d
commit
c167c556ae
@ -53,7 +53,7 @@ class UpdatesPoller(
|
|||||||
lastHandledUpdate + 1, // incremented because offset counted from 1 when updates id from 0
|
lastHandledUpdate + 1, // incremented because offset counted from 1 when updates id from 0
|
||||||
allowed_updates = allowedUpdates
|
allowed_updates = allowedUpdates
|
||||||
)
|
)
|
||||||
) ?.map {
|
).map {
|
||||||
it.asUpdate
|
it.asUpdate
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -77,7 +77,8 @@ class UpdatesPoller(
|
|||||||
while (isActive) {
|
while (isActive) {
|
||||||
delay(requestsDelayMillis)
|
delay(requestsDelayMillis)
|
||||||
try {
|
try {
|
||||||
handleUpdates(getUpdates())
|
val updates = getUpdates()
|
||||||
|
handleUpdates(updates)
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
e.printStackTrace()
|
e.printStackTrace()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user