telegram-chat: use $RmDir

This commit is contained in:
Christian Hesse 2025-02-07 16:14:58 +01:00
parent 0fea300fea
commit b156fc43cf

View file

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