telegram-chat: also give a hint on failed syntax validation

... and drop the warning in log instead.
This commit is contained in:
Christian Hesse 2023-02-01 11:23:25 +01:00
parent a073835667
commit b5399099c6

View file

@ -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!") });
}
}
}