From bf1af61d2de5a6b2f5188c3b06b6a4c2c670465a Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Wed, 1 Feb 2023 17:25:48 +0100 Subject: doc/telegram-chat: give an example on how to work around command runtime --- doc/telegram-chat.md | 7 +++++++ 1 file changed, 7 insertions(+) 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 -- cgit v1.2.3-54-g00ecf