Super simple curl wrapper to send a telegram message using a given bot token and channel id.
Go to file
Rob Pearce bcb9e5e459 add ONLYFAILED argument (-f) 2023-11-27 10:59:08 +11:00
img Initial checkin 2023-11-27 09:44:24 +11:00
README.md Update readme 2023-11-27 10:43:56 +11:00
report_telegram.sh add ONLYFAILED argument (-f) 2023-11-27 10:59:08 +11:00
telegram-send.sh use parsemode=markdown 2023-11-27 10:54:50 +11:00

README.md

Overview

Super simple curl wrapper to send Telegram messages.

Requirements

Usage

usage:  ./telegram-send.sh [OPTIONS] "text to send"

Instructs telegram bot to send the supplied message to a chat.

OPTIONS
         -b  filename       Override default bot token file (/Users/rob/.telegram/bottoken)
         -c  filename       Override default chat id token file (/Users/rob/.telegram/chatid)

Needs these files to work:
   File with telegram bot token: /Users/rob/.telegram/bottoken
   File with telegram chat id:   /Users/rob/.telegram/chatid

Example

CLI command

rob@crom:telegram-send$ ./telegram-send.sh  "this is a test"
rob@crom:telegram-send$

Telegram output

telegramoutput