Skip to content

Fix getUpdates method to retrieve all updates when no limit is set. #1169

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

Merged
merged 1 commit into from
Jan 4, 2021

Conversation

noplanman
Copy link
Member

? !
Type bug
BC Break no
Fixed issues n/a

Summary

Fix for getUpdates method, when no explicit limit is defined. It seems the Bot API return value when passing 0 as the limit has changed. Before it would send 100 updates, now it sends just 1. By changing the value to null, the parameter is actively ignored, applying the default of 100.

@noplanman noplanman added the bug label Jan 4, 2021
@noplanman noplanman self-assigned this Jan 4, 2021
@noplanman noplanman merged commit 0197933 into php-telegram-bot:develop Jan 4, 2021
@noplanman noplanman deleted the fix-getUpdates branch January 4, 2021 21:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant