summaryrefslogtreecommitdiffstats
path: root/.local/bin/notify_phone
blob: 6228f7399d77daa4fcf1d0d4e172d046e00f15d5 (plain)
1
2
3
4
5
6
7
8
9
#!/bin/bash

TOKEN=795983515:AAHAPgakm-BbRKNodF9a0z_OH2VDsIxpm_Q
CHAT_ID=4903620
INPUT=$@
MESSAGE=${INPUT:-"all done"}
URL="https://api.telegram.org/bot$TOKEN/sendMessage"

curl -s -X POST "$URL" -d chat_id="${CHAT_ID}" -d text="${MESSAGE}"