From a5c6efe2c7e0997af947d6de90c20d1bc4c049ac Mon Sep 17 00:00:00 2001 From: KnorpelSenf Date: Sun, 16 Jun 2024 22:12:36 +0200 Subject: [PATCH] Fix typo --- site/docs/guide/filter-queries.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/docs/guide/filter-queries.md b/site/docs/guide/filter-queries.md index 1e88a3af1..38ad69066 100644 --- a/site/docs/guide/filter-queries.md +++ b/site/docs/guide/filter-queries.md @@ -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.