Skip to content

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

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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 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 force-pushed the fix/stringify-allowed-updates-on-get-updates branch from bdfcb68 to a6d38d3 Compare July 2, 2025 23:22
@alfanzain
Copy link
Author

Hi @yagop @danielperez9430

I've created this PR to fix #1266
Please kindly review this PR

For more detailed context #1266 (comment)

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