Send script

Bash

TELEGRAM_TOKEN="1111111111:AAAAAAAAAAAAAAAAAAAAAAAAA"
CHAT_ID="-111111111"
MESSAGE="Test message"
 
curl -X POST -H "Content-Type: application/json" -d "{\"chat_id\":\"${CHAT_ID}\",\"text\":\"${MESSAGE}\"}" "https://api.telegram.org/bot${TELEGRAM_TOKEN}/sendMessage"
 
# for channels to disable push notifications add:
#"disable_notification":true

Bots

username_to_id_bot - get id

Navigation
Print/export
QR Code
QR Code wiki:telegram (generated for current page)