Commit graph

34 commits

Author SHA1 Message Date
Christian Hesse 6ba1faca4c telegram-chat: shorten the message 2024-04-29 23:02:48 +02:00
Christian Hesse 7e5010a608 telegram-chat: use :deserialize ...
... instead of $ParseJson. This requires RouterOS 7.13.
2024-04-01 22:45:35 +02:00
Christian Hesse c01a424f4f telegram-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.
2024-04-01 22:45:35 +02:00
Christian Hesse f72aadfc59 telegram-chat: note active state when answering broadcast 2024-03-21 21:11:38 +01:00
Christian Hesse cc81e55649 telegram-chat: improve readability with symbols 2024-03-21 14:28:23 +01:00
Christian Hesse 19fb5c5801 telegram-chat: switch to $LogPrint 2024-03-12 20:37:57 +01:00
Christian Hesse 738dd11929 telegram-chat: drop main function, use :do with on-error 2024-03-12 15:27:15 +01:00
Christian Hesse 010bea56dc telegram-chat: error when making directory fails 2024-03-12 15:27:15 +01:00
Christian Hesse 1e8918fdaa global-functions: $ScriptLock: do not exit from global function 2024-03-12 15:27:15 +01:00
Christian Hesse 6fd745fc0f telegram-chat: move code into function 2024-03-04 21:40:34 +01:00
Christian Hesse 24b681761b telegram-chat: use :jobname to get script name 2024-01-30 00:52:21 +01:00
Christian Hesse abfc8e9191 telegram-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...
2024-01-30 00:02:08 +01:00
Christian Hesse b6367b5df3 telegram-chat: fix concatenation (and retry with delay)
Ups... 😳
2024-01-30 00:02:08 +01:00
Christian Hesse 9a73fc526f update copyright for 2024 2024-01-01 15:25:25 +01:00
Christian Hesse cae5f425a6 telegram-chat: get rid of '.txt' file extension 2023-11-22 21:20:44 +01:00
Christian Hesse 1f6040178f telegram-chat: rework the retry logic
... with increasing delay.
2023-10-19 21:13:04 +02:00
Christian Hesse b81f3850ae telegram-chat: log when sending notice 2023-10-19 09:19:34 +02:00
Christian Hesse 4c365c131d telegram-chat: drop extra conversion 2023-10-19 08:42:29 +02:00
Christian Hesse fffe0a3b50 telegram-chat: retry on fetch failure...
... and exit with a warning.
2023-10-17 21:37:13 +02:00
Christian Hesse bcc10c8285 telegram-chat: make messages silent...
... at least those not indicating an error.
2023-10-17 14:05:03 +02:00
Christian Hesse 73194b92cf telegram-chat: use $ParseJson for all JSON 2023-10-16 23:43:58 +02:00
Christian Hesse c9233773b3 telegram-chat: do not act on foreign reply...
... even if active!
2023-10-16 15:27:14 +02:00
Christian Hesse bc4839f611 telegram-chat: rename variable 2023-10-16 15:27:14 +02:00
Christian Hesse 1b62545d8c telegram-chat: answer question mark with short notice 2023-10-16 15:27:14 +02:00
Christian Hesse 15873e2fdb telegram-chat: restore indention 2023-10-16 15:27:14 +02:00
Christian Hesse 555461c612 telegram-chat: do not nest conditions 2023-10-16 15:27:14 +02:00
Christian Hesse adca33cc5b telegram-chat: act on reply without delay 2023-10-16 13:11:20 +02:00
Christian Hesse 399d952ac2 telegram-chat: act on reply from self 2023-10-16 13:11:20 +02:00
Christian Hesse 080b3cbf9d global-functions: make $ParseJson global 2023-10-16 11:51:04 +02:00
Christian Hesse 8e9734347e telegram-chat: parse (one level of) JSON into array 2023-10-16 11:51:04 +02:00
Christian Hesse 4c51b2fe52 telegram-chat: do not cover existing variable 2023-10-16 11:51:04 +02:00
Christian Hesse 557823c5c1 telegram-chat: create status files with /file/add
We have no content, thus no issues with file size.
2023-09-15 09:54:59 +02:00
Christian Hesse 66ebcf2bbd telegram-chat: use the full command name :execute 2023-09-15 09:54:59 +02:00
Christian Hesse a832fd04ef rename scripts and add file extension ".rsc"
No functional change for the user... The migration is done
automatically.
2023-03-07 22:26:01 +01:00