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

Idea: Automatically discover allowed_updates #28

Open
TiiFuchs opened this issue Mar 24, 2023 · 1 comment
Open

Idea: Automatically discover allowed_updates #28

TiiFuchs opened this issue Mar 24, 2023 · 1 comment

Comments

@TiiFuchs
Copy link
Collaborator

We are able to identify the used update types the bot handles and could filter the update types the bot receives in the beginning by passing it as allowed_updates
to setWebhook or getUpdates.

This would reduce network traffic and resources, since we don't need to load the framework and parse the whole incoming json data before going over all handlers and find that there are no responsible handlers.

@TiiFuchs
Copy link
Collaborator Author

There should be an option to deactivate this behaviour though.

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