aboutsummaryrefslogtreecommitdiffstats
path: root/telegram-chat.rsc
AgeCommit message (Collapse)AuthorFilesLines
2024-07-25telegram-chat: drop extra conversionrouteros-7.15-3Gravatar Christian Hesse1-2/+2
The JSON parser was actually fixed in RouterOS 7.15beta4, but let's bump the required version to next stable release instead.
2024-07-16bump RouterOS requirement for all scripts and modules...Gravatar Christian Hesse1-1/+1
... now that global-functions requires RouterOS 7.14 anyway.
2024-06-21certs: Go Daddy Secure Certificate Authority - G2 -> Go Daddy Root ↵Gravatar Christian Hesse1-1/+1
Certificate Authority - G2
2024-05-25telegram-chat: drop extra parenthesisGravatar Christian Hesse1-3/+3
2024-05-24telegram-chat: convert the message (command) to stringGravatar Christian Hesse1-10/+11
RouterOS 7.15beta4 fixed a bug in JSON parser: *) console - do not convert string to array in ":deserialize" command; Before that change commands with a comma caused very crazy issues. Let's convert the message to a string. This does not give exactly the expected result, but mitigates telegram-chat to explode. A command like... /ip/address/print proplist=address,network; ... is converted to... /ip/address/print proplist=address;network; ... and results in: Columns: ADDRESS # ADDRESS 0 10.0.0.1/24 1 127.0.0.1/8 bad command name network (line 1 column 36)
2024-04-29telegram-chat: shorten the messageGravatar Christian Hesse1-1/+1
2024-04-01telegram-chat: use :deserialize ...Gravatar Christian Hesse1-7/+6
... instead of $ParseJson. This requires RouterOS 7.13.
2024-04-01telegram-chat: read file content...routeros-7.13-2change-126Gravatar Christian Hesse1-5/+4
... instead of getting it. This lifts the size limit, though we are still limited by Telegram message size. This requires RouterOS 7.13.
2024-03-21telegram-chat: note active state when answering broadcastGravatar Christian Hesse1-1/+1
2024-03-21telegram-chat: improve readability with symbolsGravatar Christian Hesse1-6/+9
2024-03-12telegram-chat: switch to $LogPrintGravatar Christian Hesse1-13/+16
2024-03-12telegram-chat: drop main function, use :do with on-errorGravatar Christian Hesse1-6/+4
2024-03-12telegram-chat: error when making directory failsGravatar Christian Hesse1-1/+3
2024-03-12global-functions: $ScriptLock: do not exit from global functionGravatar Christian Hesse1-1/+3
2024-03-04telegram-chat: move code into functionGravatar Christian Hesse1-128/+133
2024-01-30telegram-chat: use :jobname to get script nameGravatar Christian Hesse1-1/+3
2024-01-30telegram-chat: add (and increase) random delay on errorGravatar Christian Hesse1-0/+11
Chances are that two devices schedule the script (nearly) simultaneously. Causing a lot of failures from fetch. Instead of forcing a retry on *every* invocating we add (and increase) a random delay, that is slowly decreasd on success. This should minimize failures...
2024-01-30telegram-chat: fix concatenation (and retry with delay)Gravatar Christian Hesse1-1/+1
Ups... 😳
2024-01-01update copyright for 2024Gravatar Christian Hesse1-1/+1
2023-11-22telegram-chat: get rid of '.txt' file extensionGravatar Christian Hesse1-3/+3
2023-10-19telegram-chat: rework the retry logicGravatar Christian Hesse1-3/+5
... with increasing delay.
2023-10-19telegram-chat: log when sending noticeGravatar Christian Hesse1-0/+1
2023-10-19telegram-chat: drop extra conversionGravatar Christian Hesse1-1/+1
2023-10-17telegram-chat: retry on fetch failure...Gravatar Christian Hesse1-7/+16
... and exit with a warning.
2023-10-17telegram-chat: make messages silent...Gravatar Christian Hesse1-2/+2
... at least those not indicating an error.
2023-10-16telegram-chat: use $ParseJson for all JSONGravatar Christian Hesse1-2/+1
2023-10-16telegram-chat: do not act on foreign reply...Gravatar Christian Hesse1-1/+2
... even if active!
2023-10-16telegram-chat: rename variableGravatar Christian Hesse1-3/+3
2023-10-16telegram-chat: answer question mark with short noticechange-106-2Gravatar Christian Hesse1-1/+7
2023-10-16telegram-chat: restore indentionGravatar Christian Hesse1-25/+25
2023-10-16telegram-chat: do not nest conditionsGravatar Christian Hesse1-3/+4
2023-10-16telegram-chat: act on reply without delayGravatar Christian Hesse1-4/+4
2023-10-16telegram-chat: act on reply from selfchange-106-1Gravatar Christian Hesse1-1/+3
2023-10-16global-functions: make $ParseJson globalGravatar Christian Hesse1-26/+1
2023-10-16telegram-chat: parse (one level of) JSON into arrayGravatar Christian Hesse1-33/+41
2023-10-16telegram-chat: do not cover existing variableGravatar Christian Hesse1-3/+3
2023-09-15telegram-chat: create status files with /file/addrouteros-7.9beta4-9Gravatar Christian Hesse1-4/+4
We have no content, thus no issues with file size.
2023-09-15telegram-chat: use the full command name :executeGravatar Christian Hesse1-1/+1
2023-03-07rename scripts and add file extension ".rsc"change-95Gravatar Christian Hesse1-0/+150
No functional change for the user... The migration is done automatically.