aboutsummaryrefslogtreecommitdiffstats
path: root/telegram-chat
diff options
context:
space:
mode:
Diffstat (limited to 'telegram-chat')
-rw-r--r--telegram-chat3
1 files changed, 2 insertions, 1 deletions
diff --git a/telegram-chat b/telegram-chat
index 4c6ea21..c6a4c3b 100644
--- a/telegram-chat
+++ b/telegram-chat
@@ -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; \