aboutsummaryrefslogtreecommitdiffstats
path: root/doc/telegram-chat.md
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2023-02-01 17:25:48 +0100
committerGravatar Christian Hesse <mail@eworm.de>2023-02-01 17:28:45 +0100
commitbf1af61d2de5a6b2f5188c3b06b6a4c2c670465a (patch)
tree8cb97e575321ffaf0a8c0b88dae1f748d8df5f34 /doc/telegram-chat.md
parent049a029170ccb1206c556ea56a579110d80752d2 (diff)
doc/telegram-chat: give an example on how to work around command runtime
Diffstat (limited to 'doc/telegram-chat.md')
-rw-r--r--doc/telegram-chat.md7
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/telegram-chat.md b/doc/telegram-chat.md
index c3983d3..fe0d2d6 100644
--- a/doc/telegram-chat.md
+++ b/doc/telegram-chat.md
@@ -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