diff options
author | Christian Hesse <mail@eworm.de> | 2024-05-24 20:37:42 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2024-07-25 09:15:41 +0200 |
commit | 32474c751f9fb69e096dc7f3b9e8c1f2c1fe6f90 (patch) | |
tree | 0d6d0eb5ee46ba22ea324918ed3b7fcb73cc14b8 /telegram-chat.rsc | |
parent | a017f2422442d71bac2ae7081e089e90a1636d83 (diff) |
telegram-chat: drop extra conversionrouteros-7.15-3
The JSON parser was actually fixed in RouterOS 7.15beta4, but 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 2bdc04d..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.14 +# 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={ |