Commit 0192bb50 authored by Armando Lüscher's avatar Armando Lüscher Committed by GitHub

Merge pull request #581 from jacklul/fix-1

Fix for 0.47.0
parents 75d992c3 a738e09c
......@@ -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