From b5399099c6bd01b46cb1e6d0074a0d8b0715d707 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Wed, 1 Feb 2023 11:23:25 +0100 Subject: telegram-chat: also give a hint on failed syntax validation ... and drop the warning in log instead. --- telegram-chat | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/telegram-chat b/telegram-chat index 1c10fcd..da3f0e5 100644 --- a/telegram-chat +++ b/telegram-chat @@ -114,7 +114,9 @@ $WaitFullyConnected; message=("Command:\n" . $Text . "\n\n" . $State . "Output:\n" . $Content) }); /file/remove "tmpfs/telegram-chat"; } else={ - $LogPrintExit2 warning $0 ("The command failed syntax validation: " . $Text) false; + $SendTelegram2 ({ origin=$0; silent=false; \ + subject=([ $SymbolForNotification "speech-balloon" ] . "Telegram Chat"); \ + message=("Command:\n" . $Text . "\n\nThe command failed syntax validation!") }); } } } -- cgit v1.2.3-70-g09d2