Skip to content

Fix params allowed_updates on Telegram bot polling whenever it's an array #1269

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

Conversation

alfanzain
Copy link

@alfanzain alfanzain commented Jul 2, 2025

  • All tests pass - I've tried to run those, but they even failed in master
  • I have run npm run doc

Description

The bot was not receiving updates for message_reaction events, even though allowed_updates was specified in the polling config.
Turns out, the allowed_updates parameter was not being correctly passed to the getUpdates call if it is an array. It needs to be JSON-stringified.

This PR fixes the polling configuration to ensure that allowed_updates is properly passed as an array to the getUpdates method.

References

@alfanzain alfanzain force-pushed the feat/stringify-allowed-updates-on-get-updates branch 2 times, most recently from e251886 to e4bb415 Compare July 2, 2025 22:47
@alfanzain alfanzain marked this pull request as ready for review July 2, 2025 22:56
@alfanzain alfanzain force-pushed the feat/stringify-allowed-updates-on-get-updates branch from e4bb415 to bdfcb68 Compare July 2, 2025 22:57
@alfanzain alfanzain changed the title feat: stringify allowed_updates if it's an array on getUpdates Fix params allowed_updates on Telegram bot polling whenever it's an array Jul 2, 2025
@alfanzain alfanzain closed this Jul 2, 2025
@alfanzain alfanzain deleted the feat/stringify-allowed-updates-on-get-updates branch July 2, 2025 23:04
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

Successfully merging this pull request may close these issues.

1 participant