1
0
mirror of https://github.com/eworm-de/routeros-scripts.git synced 2024-05-11 05:55:19 +00:00

doc/telegram-chat: give an example on how to work around command runtime

This commit is contained in:
Christian Hesse
2023-02-01 17:25:48 +01:00
parent 049a029170
commit bf1af61d2d

View File

@@ -85,6 +85,13 @@ The command is run in background while the script waits for it - about
20 seconds at maximum. A command exceeding that time continues to run in
background, but the output in the message is missing or truncated then.
If you still want a response you can work around this by making your code
send information on its own. Something like this should do the job:
:global SendTelegram;
:delay 30s;
$SendTelegram "Command finished" "Your command finished...";
### Output size
RouterOS is limited in reading file content to a size of about four