Depending on how long a request to Telegram and it's processing takes (potentially a slow plugin), the setInterval method can call a new getUpdates before the previous handleUpdate has finished. This results in the same messages being delivered as the offset has yet to be updated.
Depending on how long a request to Telegram and it's processing takes (potentially a slow plugin), the setInterval method can call a new
getUpdates
before the previoushandleUpdate
has finished. This results in the same messages being delivered as the offset has yet to be updated.