aboutsummaryrefslogtreecommitdiffstats
path: root/telegram-chat
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2023-02-02 11:30:49 +0100
committerGravatar Christian Hesse <mail@eworm.de>2023-02-02 11:30:49 +0100
commitc47c9a290605ce91dd6816702b27114784c05b97 (patch)
tree4a79ec371f0f345d3593fb9477a09ccf67ce478b /telegram-chat
parent82003bc7d139b4fd68ba0fdf32e837852b42edbc (diff)
telegram-chat: discard messages without text
Diffstat (limited to 'telegram-chat')
-rw-r--r--telegram-chat2
1 files changed, 1 insertions, 1 deletions
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 ]);