aboutsummaryrefslogtreecommitdiffstats
path: root/telegram-chat.rsc
AgeCommit message (Expand)AuthorFilesLines
13 daystelegram-chat: use $ExitError to indicate unintentional errorGravatar Christian Hesse1-1/+8
2024-07-25telegram-chat: drop extra conversion•••The JSON parser was actually fixed in RouterOS 7.15beta4, but let's bump the required version to next stable release instead. routeros-7.15-3Gravatar Christian Hesse1-2/+2
2024-07-16bump RouterOS requirement for all scripts and modules...•••... now that global-functions requires RouterOS 7.14 anyway. Gravatar Christian Hesse1-1/+1
2024-06-21certs: Go Daddy Secure Certificate Authority - G2 -> Go Daddy Root Certificat...Gravatar Christian Hesse1-1/+1
2024-05-25telegram-chat: drop extra parenthesisGravatar Christian Hesse1-3/+3
2024-05-24telegram-chat: convert the message (command) to string•••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) Gravatar Christian Hesse1-10/+11
2024-04-29telegram-chat: shorten the messageGravatar Christian Hesse1-1/+1
2024-04-01telegram-chat: use :deserialize ...•••... instead of $ParseJson. This requires RouterOS 7.13. Gravatar Christian Hesse1-7/+6
2024-04-01telegram-chat: read file content...•••... instead of getting it. This lifts the size limit, though we are still limited by Telegram message size. This requires RouterOS 7.13. routeros-7.13-2change-126Gravatar Christian Hesse1-5/+4
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 error•••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... Gravatar Christian Hesse1-0/+11
2024-01-30telegram-chat: fix concatenation (and retry with delay)•••Ups... 😳 Gravatar Christian Hesse1-1/+1
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 logic•••... with increasing delay. Gravatar Christian Hesse1-3/+5
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...•••... and exit with a warning. Gravatar Christian Hesse1-7/+16
2023-10-17telegram-chat: make messages silent...•••... at least those not indicating an error. Gravatar Christian Hesse1-2/+2
2023-10-16telegram-chat: use $ParseJson for all JSONGravatar Christian Hesse1-2/+1
2023-10-16telegram-chat: do not act on foreign reply...•••... even if active! Gravatar Christian Hesse1-1/+2
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/add•••We have no content, thus no issues with file size. routeros-7.9beta4-9Gravatar Christian Hesse1-4/+4
2023-09-15telegram-chat: use the full command name :executeGravatar Christian Hesse1-1/+1
2023-03-07rename scripts and add file extension ".rsc"•••No functional change for the user... The migration is done automatically. change-95Gravatar Christian Hesse1-0/+150