From 1d43ec5556b4ed92fbd0cfa8d3431925d73cde49 Mon Sep 17 00:00:00 2001 From: TangMo Date: Thu, 18 Sep 2025 21:45:02 +0000 Subject: [PATCH] Trim text --- src/Commands/GenericmessageCommand.php | 3 +++ 1 file changed, 3 insertions(+) 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(); }