mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-07 16:44:28 +02:00
telegram-chat: handle exceeded file read size
This commit is contained in:
parent
600203797b
commit
9c066599e8
1 changed files with 2 additions and 1 deletions
|
@ -115,7 +115,8 @@ $WaitFullyConnected;
|
|||
$SendTelegram2 ({ origin=$0; chatid=$ChatID; silent=false; \
|
||||
subject=([ $SymbolForNotification "speech-balloon" ] . "Telegram Chat"); \
|
||||
message=("Command:\n" . $Text . "\n\n" . $State . [ $IfThenElse ([ :len $Content ] > 0) \
|
||||
("Output:\n" . $Content) "No output available." ]) });
|
||||
("Output:\n" . $Content) [ $IfThenElse ([ /file/get ($File . ".txt") size ] > 0) \
|
||||
("Output exceeds file read size.") ("No output.") ] ]) });
|
||||
/file/remove "tmpfs/telegram-chat";
|
||||
} else={
|
||||
$SendTelegram2 ({ origin=$0; chatid=$ChatID; silent=false; \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue