mirror of
https://github.com/nymurbd/MikroTik-scripts.git
synced 2025-07-12 19:14:29 +02:00
telegram-chat: modify text if no output available
This commit is contained in:
parent
b5399099c6
commit
8dd53c80f5
1 changed files with 2 additions and 1 deletions
|
@ -111,7 +111,8 @@ $WaitFullyConnected;
|
|||
:local Content [ /file/get ($File . ".txt") content ];
|
||||
$SendTelegram2 ({ origin=$0; silent=false; \
|
||||
subject=([ $SymbolForNotification "speech-balloon" ] . "Telegram Chat"); \
|
||||
message=("Command:\n" . $Text . "\n\n" . $State . "Output:\n" . $Content) });
|
||||
message=("Command:\n" . $Text . "\n\n" . $State . [ $IfThenElse ([ :len $Content ] > 0) \
|
||||
("Output:\n" . $Content) "No output available." ]) });
|
||||
/file/remove "tmpfs/telegram-chat";
|
||||
} else={
|
||||
$SendTelegram2 ({ origin=$0; silent=false; \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue