aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2025-05-23 17:38:22 +0200
committerGravatar Christian Hesse <mail@eworm.de>2025-05-23 17:38:22 +0200
commit6a49c483b679d7dc68b7b12617be24508c3fa5b4 (patch)
treef94b3df9d9d6c403f51339df1983483de4f4845f
parentc50acd697a75d9e1dd3d336405d4bdc1567546ee (diff)
telegram-chat: rename variable...HEADstagingnextmain
... to better describe the use.
-rw-r--r--telegram-chat.rsc4
1 files changed, 2 insertions, 2 deletions
diff --git a/telegram-chat.rsc b/telegram-chat.rsc
index 9862479..fdd0883 100644
--- a/telegram-chat.rsc
+++ b/telegram-chat.rsc
@@ -100,7 +100,7 @@
$LogPrintVerbose debug $ScriptName ("Update " . $UpdateID . ": " . [ :serialize to=json $Update ]);
:local Message ($Update->"message");
- :local IsReply ([ :typeof ($Message->"reply_to_message") ] = "array");
+ :local IsAnyReply ([ :typeof ($Message->"reply_to_message") ] = "array");
:local IsMyReply ($TelegramMessageIDs->[ :tostr ($Message->"reply_to_message"->"message_id") ]);
:if (($IsMyReply = 1 || $TelegramChatOffset->0 > 0 || $Uptime > 5m) && $UpdateID >= $TelegramChatOffset->2) do={
:local Trusted false;
@@ -138,7 +138,7 @@
" from update " . $UpdateID . "!");
:set Done true;
}
- :if ($Done = false && ($IsMyReply = 1 || ($IsReply = false && \
+ :if ($Done = false && ($IsMyReply = 1 || ($IsAnyReply = false && \
$TelegramChatActive = true)) && [ :len $Command ] > 0) do={
:if ([ $ValidateSyntax $Command ] = true) do={
:local State "";