mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2025-09-03 15:19:30 +00:00
a little fixes
This commit is contained in:
@@ -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()
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user