aboutsummaryrefslogtreecommitdiffstats
path: root/telegram-chat.rsc
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2024-05-24 20:37:42 +0200
committerGravatar Christian Hesse <mail@eworm.de>2024-06-06 10:02:45 +0200
commit64e71a0fe57cb952aa8bfb5ba525a2315b8f23c7 (patch)
treeeb90875ce914c5cb2b87b4eb6d68858c22284a46 /telegram-chat.rsc
parenta01725e312abd10904392426be4060fa79f2c6e7 (diff)
telegram-chat: drop extra conversionstaging
The JSON parser war actually fixed in RouterOS 7.15beta4. Let's bump the required version to next stable release instead.
Diffstat (limited to 'telegram-chat.rsc')
-rw-r--r--telegram-chat.rsc4
1 files changed, 2 insertions, 2 deletions
diff --git a/telegram-chat.rsc b/telegram-chat.rsc
index 0fd8a06..086718f 100644
--- a/telegram-chat.rsc
+++ b/telegram-chat.rsc
@@ -3,7 +3,7 @@
# Copyright (c) 2023-2024 Christian Hesse <mail@eworm.de>
# https://git.eworm.de/cgit/routeros-scripts/about/COPYING.md
#
-# requires RouterOS, version=7.13
+# requires RouterOS, version=7.15
#
# use Telegram to chat with your Router and send commands
# https://git.eworm.de/cgit/routeros-scripts/about/doc/telegram-chat.md
@@ -97,7 +97,7 @@
:local Trusted false;
:local Chat ($Message->"chat");
:local From ($Message->"from");
- :local Command [ :tostr ($Message->"text") ];
+ :local Command ($Message->"text");
:foreach IdsTrusted in=($TelegramChatId, $TelegramChatIdsTrusted) do={
:if ($From->"id" = $IdsTrusted || $From->"username" = $IdsTrusted) do={