mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2025-07-21 11:24:37 +02:00
telegram-chat: use $RmDir
This commit is contained in:
parent
0fea300fea
commit
b156fc43cf
1 changed files with 2 additions and 1 deletions
|
@ -37,6 +37,7 @@
|
||||||
:global MIN;
|
:global MIN;
|
||||||
:global MkDir;
|
:global MkDir;
|
||||||
:global RandomDelay;
|
:global RandomDelay;
|
||||||
|
:global RmDir;
|
||||||
:global ScriptLock;
|
:global ScriptLock;
|
||||||
:global SendTelegram2;
|
:global SendTelegram2;
|
||||||
:global SymbolForNotification;
|
:global SymbolForNotification;
|
||||||
|
@ -154,7 +155,7 @@
|
||||||
$State . [ $IfThenElse ([ :len $Content ] > 0) \
|
$State . [ $IfThenElse ([ :len $Content ] > 0) \
|
||||||
([ $SymbolForNotification "memo" ] . "Output:\n" . $Content) \
|
([ $SymbolForNotification "memo" ] . "Output:\n" . $Content) \
|
||||||
([ $SymbolForNotification "memo" ] . "No output.") ]) });
|
([ $SymbolForNotification "memo" ] . "No output.") ]) });
|
||||||
/file/remove "tmpfs/telegram-chat";
|
$RmDir "tmpfs/telegram-chat";
|
||||||
} else={
|
} else={
|
||||||
$LogPrint info $ScriptName ("The command from update " . $UpdateID . " failed syntax validation!");
|
$LogPrint info $ScriptName ("The command from update " . $UpdateID . " failed syntax validation!");
|
||||||
$SendTelegram2 ({ origin=$ScriptName; chatid=($Chat->"id"); silent=false; replyto=($Message->"message_id"); \
|
$SendTelegram2 ({ origin=$ScriptName; chatid=($Chat->"id"); silent=false; replyto=($Message->"message_id"); \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue