Open krasawa opened 4 years ago
Offset parameter is correctly updated everytime a new group of updates is received, so it shouldn't be necessary to do any extra processing here. Do you get any error in the logs?
In addition, it may make sense to change it to:
lastReceivedUpdate = updates.parallelStream()
.map(
Update::getUpdateId)
.max(Integer::compareTo)
.orElse(lastReceivedUpdate); // See change here
@rubenlagus could you suggest how to enable logs in library? I don't see any errors now.
On low connection my long polling bot receives multiple onUpdateReceived() for the same command. It's hard to reproduce, but I thing it may be related to offset param. https://core.telegram.org/bots/api#getupdates says:
Maybe someone met this problem?