Feature Request: Automatic update filtering #389
Labels
feature-accepted
Feature Request or Proposal was accepted by maintainers and will be implemented
K-feature-request
Kind: request for implementing a feature
Milestone
Both
GetUpdates
andSetWebhook
methods accept theallowed_updates
parameter which allows filtering updates that are not needed. Teloxide should automatically check which handlers are set up, and setallowed_updates
to an appropriate value.I propose adding the following method to the
UpdateListener
trait:(cc @Hirrolot should I do this in #385, or should I make a new PR for that?)
Pros
Users won't need to provide
allowed_updates
by themself and so won't make a mistake providingallowed_updates
with redundant update types or without wanted update types.Cons
None known.
The text was updated successfully, but these errors were encountered: