From 4c365c131d28b0eb45ee72b12ef10c846b535e79 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Wed, 18 Oct 2023 18:26:22 +0200 Subject: telegram-chat: drop extra conversion --- telegram-chat.rsc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'telegram-chat.rsc') 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") ]; -- cgit v1.2.3-70-g09d2