mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-24 21:04:28 +02:00
telegram-chat: discard messages without text
This commit is contained in:
parent
82003bc7d1
commit
c47c9a2906
1 changed files with 1 additions and 1 deletions
|
@ -97,7 +97,7 @@ $WaitFullyConnected;
|
|||
}
|
||||
$LogPrintExit2 info $0 ("Now " . [ $IfThenElse $TelegramChatActive "active" "passive" ] . "!") false;
|
||||
} else={
|
||||
:if ($TelegramChatActive = true && [ :len $Text ] > 0) do={
|
||||
:if ($TelegramChatActive = true && $Text != false && [ :len $Text ] > 0) do={
|
||||
:if ([ $ValidateSyntax $Text ] = true) do={
|
||||
:local State "";
|
||||
:local File ("tmpfs/telegram-chat/" . [ $GetRandom20CharAlNum 6 ]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue