mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-23 12:24:28 +02:00
telegram-chat: also give a hint on failed syntax validation
... and drop the warning in log instead.
This commit is contained in:
parent
a073835667
commit
b5399099c6
1 changed files with 3 additions and 1 deletions
|
@ -114,7 +114,9 @@ $WaitFullyConnected;
|
||||||
message=("Command:\n" . $Text . "\n\n" . $State . "Output:\n" . $Content) });
|
message=("Command:\n" . $Text . "\n\n" . $State . "Output:\n" . $Content) });
|
||||||
/file/remove "tmpfs/telegram-chat";
|
/file/remove "tmpfs/telegram-chat";
|
||||||
} else={
|
} 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!") });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue