diff --git a/src/Commands/GenericmessageCommand.php b/src/Commands/GenericmessageCommand.php index 272ec55..35c3059 100644 --- a/src/Commands/GenericmessageCommand.php +++ b/src/Commands/GenericmessageCommand.php @@ -32,6 +32,9 @@ class GenericmessageCommand extends SystemCommand } $text = $message->getText(true) ?? $message->getCaption(); + if ($text) { + $text = trim($text); + } if (empty($text)) { return Request::emptyResponse(); }