Trim text

This commit is contained in:
brian committed 2025-09-18 21:45:02 +00:00
1 parent c613af2b38
commit 1d43ec5556
1 file changed
+3
+3
View File
@@ -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();
} }