Trim text

This commit is contained in:
2025-09-18 21:45:02 +00:00
parent c613af2b38
commit 1d43ec5556

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();
} }