aboutsummaryrefslogtreecommitdiffstats
path: root/telegram-chat.rsc
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2023-10-10 13:16:58 +0200
committerGravatar Christian Hesse <mail@eworm.de>2023-10-16 13:11:20 +0200
commit399d952ac21057c5ab88120bef4a400b06caea3b (patch)
tree1c2b9317e0b4223b30409d142827455ca34cc53f /telegram-chat.rsc
parentfd1263324dbbb0e80bc99e30d317eca9fd7b264b (diff)
telegram-chat: act on reply from selfchange-106-1
Diffstat (limited to 'telegram-chat.rsc')
-rw-r--r--telegram-chat.rsc4
1 files changed, 3 insertions, 1 deletions
diff --git a/telegram-chat.rsc b/telegram-chat.rsc
index 6083fee..29130db 100644
--- a/telegram-chat.rsc
+++ b/telegram-chat.rsc
@@ -17,6 +17,7 @@
:global TelegramChatIdsTrusted;
:global TelegramChatOffset;
:global TelegramChatRunTime;
+:global TelegramMessageIDs;
:global TelegramTokenId;
:global CertificateAvailable;
@@ -83,7 +84,8 @@ $WaitFullyConnected;
$LogPrintExit2 info $0 ("Now " . [ $IfThenElse $TelegramChatActive "active" "passive" ] . \
" from update " . $UpdateID . "!") false;
} else={
- :if ($TelegramChatActive = true && [ :len ($Message->"text") ] > 0) do={
+ :if (($TelegramMessageIDs->([ $ParseJson ($Message->"reply_to_message") ]->"message_id") = 1 || \
+ $TelegramChatActive = true) && [ :len ($Message->"text") ] > 0) do={
:if ([ $ValidateSyntax ($Message->"text") ] = true) do={
:local State "";
:local File ("tmpfs/telegram-chat/" . [ $GetRandom20CharAlNum 6 ]);