This is an old revision of the document!
BotFather /newbot choose name: Val spec N choose username: ValspecNbot ... You will find it at t.me/Valspec2bot ... Use this token to access the HTTP API: NNNNNNNNNNNN:MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM ...
t.me/ValspecNbot /start test ...
https://api.telegram.org/botNNNNNNNNNNNN:MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM/getUpdates
... "chat": { "id": YYYYYYYYYY ...
$ cat send-to-telegram.sh
#!/bin/sh [ "$1" ] && MESSAGE=$1 || MESSAGE="Hello, world!" #MESSAGE=$(cat) TOKEN="NNNNNNNNNNNN:MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM" CHAT_ID="YYYYYYYYYY" curl -s -X POST https://api.telegram.org/bot$TOKEN/sendMessage -d chat_id=$CHAT_ID -d text="$MESSAGE"
$ time make buildworld; /home/val/send-to-telegram.sh FINISH
debian:~# chmod 700 /usr/local/bin/send-to-telegram.sh
BotFather ### /mybots ### /deletebot ...