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

TOKEN=$(pass telegram/notifier)
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}"