From da954d5948e725aa2e8a650241593de5bcdd324a Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Wed, 22 May 2024 11:24:03 +0200 Subject: [PATCH] Fix --- docs/docs/FILTERS.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/docs/FILTERS.md b/docs/docs/FILTERS.md index 401b393483..171b41dddc 100644 --- a/docs/docs/FILTERS.md +++ b/docs/docs/FILTERS.md @@ -420,19 +420,19 @@ class MyEventHandler extends SimpleEventHandler // Handle all incoming messages (private+groups+channels). } - #[FilterAnd(new FilterOutgoing, new FilterPrivate)] + #[FiltersAnd(new FilterOutgoing, new FilterPrivate)] public function h2(Message $message): void { // Handle all outgoing messages (private). } - #[FilterAnd(new FilterIncoming, new FilterOr(new FilterGroup, new FilterChannel), new FilterMedia)] + #[FiltersAnd(new FilterIncoming, new FiltersOr(new FilterGroup, new FilterChannel), new FilterMedia)] public function h3(Message $message): void { // Handle all incoming messages with media attached (groups+channels). } - #[FilterOr(new FilterGroup, new FilterChannel)] + #[FiltersOr(new FilterGroup, new FilterChannel)] public function h4(Incoming&Message&HasMedia $message): void { // Same as h3, but combining simple filters with attribute filters. @@ -444,14 +444,14 @@ Attribute filters are usual combined with [simple filters](#simple-filters). Attribute filters are ANDed with simple filters defined on the same method, for example this: ```php -#[FilterOr(new FilterGroup, new FilterChannel)] +#[FiltersOr(new FilterGroup, new FilterChannel)] public function h4(Incoming&Message&HasMedia $message) ``` Is exactly the same as this: ```php -#[FilterAnd(new FilterIncoming, new FilterMessage, new FilterMedia, new FilterOr(new FilterGroup, new FilterChannel))] +#[FiltersAnd(new FilterIncoming, new FilterMessage, new FilterMedia, new FiltersOr(new FilterGroup, new FilterChannel))] public function h3($message): void ``` @@ -939,4 +939,4 @@ Here's a full list of all MTProto filters (click on each filter name to view the -Next section \ No newline at end of file +Next section