Commit a738e09c authored by Jack'lul's avatar Jack'lul

Make sure we only filter update types that directly call a command

parent 75d992c3
......@@ -368,7 +368,9 @@ abstract class Command
*/
protected function removeNonPrivateMessage()
{
$message = $this->getMessage();
$message = $this->getMessage() ?: $this->getEditedMessage();
if ($message) {
$chat = $message->getChat();
if (!$chat->isPrivateChat()) {
......@@ -380,6 +382,7 @@ abstract class Command
return true;
}
}
return false;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment