Trim text
This commit is contained in:
@@ -32,6 +32,9 @@ class GenericmessageCommand extends SystemCommand
|
|||||||
}
|
}
|
||||||
|
|
||||||
$text = $message->getText(true) ?? $message->getCaption();
|
$text = $message->getText(true) ?? $message->getCaption();
|
||||||
|
if ($text) {
|
||||||
|
$text = trim($text);
|
||||||
|
}
|
||||||
if (empty($text)) {
|
if (empty($text)) {
|
||||||
return Request::emptyResponse();
|
return Request::emptyResponse();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user