aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2023-10-18 18:26:22 +0200
committerGravatar Christian Hesse <mail@eworm.de>2023-10-19 08:42:29 +0200
commit4c365c131d28b0eb45ee72b12ef10c846b535e79 (patch)
treeab59f2e663679a59915025611f7be8cbfd35a24f
parent9138c17f8c3bbd415a0defe6ada431075a7c8f04 (diff)
telegram-chat: drop extra conversion
-rw-r--r--telegram-chat.rsc2
1 files changed, 1 insertions, 1 deletions
diff --git a/telegram-chat.rsc b/telegram-chat.rsc
index 7486276..197cbf4 100644
--- a/telegram-chat.rsc
+++ b/telegram-chat.rsc
@@ -67,7 +67,7 @@ $WaitFullyConnected;
:local UpdateID 0;
:local Uptime [ /system/resource/get uptime ];
-:foreach UpdateArray in=[ :toarray ([ $ParseJson $Data ]->"result") ] do={
+:foreach UpdateArray in=([ $ParseJson $Data ]->"result") do={
:local Update [ $ParseJson $UpdateArray ];
:set UpdateID ($Update->"update_id");
:local Message [ $ParseJson ($Update->"message") ];