diff options
author | 2024-05-24 20:37:42 +0200 | |
---|---|---|
committer | 2024-07-02 21:33:11 +0200 | |
commit | d6640232213f1c958951fefcb84a0ac2445c2647 (patch) | |
tree | e00cef87445f1697155da347d1b9f03dcaab74fe /telegram-chat.rsc | |
parent | 7fb2eaf33a7b9f0d2fbc9341bce9efe84c22f272 (diff) |
telegram-chat: drop extra conversion
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.rsc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/telegram-chat.rsc b/telegram-chat.rsc index 1c274ec..f2750f5 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={ |