From c47c9a290605ce91dd6816702b27114784c05b97 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Thu, 2 Feb 2023 11:30:49 +0100 Subject: telegram-chat: discard messages without text --- telegram-chat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telegram-chat b/telegram-chat index 4a78da4..dffded1 100644 --- a/telegram-chat +++ b/telegram-chat @@ -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 ]); -- cgit v1.2.3-70-g09d2