#!/bin/bash # shellcheck disable=SC1090,SC2034 #=============================================================================== # # FILE: bin/send_message.sh # 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, 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]"