1
0
mirror of https://github.com/danog/MadelineProto.git synced 2025-01-23 04:31:12 +01:00

Merge pull request #1394 from AhJXD/v8

Fix a bug
This commit is contained in:
Daniil Gentili 2023-08-29 22:28:01 +02:00 committed by GitHub
commit 7a9718cd98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -52,7 +52,7 @@ abstract class AbstractFilterFromSenders extends Filter
}
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 InlineQuery && \in_array($update->userId, $this->peersResolved, true));
}