Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
KnorpelSenf committed Jun 16, 2024
1 parent 4d599e9 commit a5c6efe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion site/docs/guide/filter-queries.md
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ In this case, you will be provided with helpful error messages.
The validation of the filter queries happens only once, when the bot is initialized and `bot.on()` is called.

On start-up, grammY derives a predicate function from the filter query by splitting it into its query parts.
Every part will be mapped to a function that performs a single check truthiness check for an object property, or two checks if the part is omitted and two values need to be checked.
Every part will be mapped to a function that performs a single truthiness check for an object property, or two checks if the part is omitted and two values need to be checked.
These functions are then combined to form a predicate that only has to check for as many values as are relevant for the query, without iterating over the object keys of `Update`.

This system uses less operations than some competing libraries, which need to perform containment checks in arrays when routing updates.
Expand Down

0 comments on commit a5c6efe

Please sign in to comment.