Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Receiving double messages when polling #43

Closed
arcturial opened this issue Mar 29, 2016 · 0 comments
Closed

Receiving double messages when polling #43

arcturial opened this issue Mar 29, 2016 · 0 comments

Comments

@arcturial
Copy link
Collaborator

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.

arcturial added a commit that referenced this issue Apr 14, 2016
Move the offset update into the getUpdates method. #43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant