lukefx / hubot-telegram

Hubot adapter for Telegram
MIT License
160 stars 42 forks source link

Receiving double messages when polling #43

Closed arcturial closed 8 years ago

arcturial commented 8 years ago

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.