From 783bf3019052d7ac356a2129757bab6f4c681a4c Mon Sep 17 00:00:00 2001 From: "Kay Marquardt (Gnadelwartz)" Date: Fri, 4 Jun 2021 22:47:43 +0200 Subject: [PATCH] bin: send_message: implement read from stdin or file --- bin/send_message.sh | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/bin/send_message.sh b/bin/send_message.sh index 90ad226..f6acdb3 100755 --- a/bin/send_message.sh +++ b/bin/send_message.sh @@ -8,11 +8,15 @@ USAGE='send_message.sh [-h|--help] [format] "CHAT[ID]" "message ...." [debug]' # # DESCRIPTION: send a message to the given user/group # -# OPTIONS: format - normal, markdown, html (optional) +# OPTIONS: format - normal, markdown, html, stdin, - (optional) # CHAT[ID] - ID number of CHAT or BOTADMIN to send to yourself # message - message to send in specified format # if no format is givern send_message() format is used # +# use format "stdin" to read message from stdin or from a file: +# send_message.sh stdin "CHAT[ID]"