mirror of
https://github.com/danog/MadelineProto.git
synced 2025-01-23 06:51:23 +01:00
commit
7a9718cd98
@ -52,7 +52,7 @@ abstract class AbstractFilterFromSenders extends Filter
|
|||||||
}
|
}
|
||||||
public function apply(Update $update): bool
|
public function apply(Update $update): bool
|
||||||
{
|
{
|
||||||
return $update instanceof GroupMessage && \in_array($update->senderId, $this->peersResolved, true);
|
return $update instanceof GroupMessage && \in_array($update->senderId, $this->peersResolved, true) ||
|
||||||
($update instanceof ButtonQuery && \in_array($update->userId, $this->peersResolved, true)) ||
|
($update instanceof ButtonQuery && \in_array($update->userId, $this->peersResolved, true)) ||
|
||||||
($update instanceof InlineQuery && \in_array($update->userId, $this->peersResolved, true));
|
($update instanceof InlineQuery && \in_array($update->userId, $this->peersResolved, true));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user