Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- API_KEY=
- API_URL=https://api.telegram.org/bot$API_KEY
- CHAT_ID="$1"
- MSG=$2
- curl -s -X POST $API_URL/sendMessage -d parse_mode=Markdown -d chat_id=$CHAT_ID -d text="$MSG"
- =============
- ./telegram.sh CHAT_ID MSG
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement