diff options
Diffstat (limited to '.local/bin/notify_phone')
-rwxr-xr-x | .local/bin/notify_phone | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/.local/bin/notify_phone b/.local/bin/notify_phone new file mode 100755 index 0000000..6228f73 --- /dev/null +++ b/.local/bin/notify_phone | |||
@@ -0,0 +1,9 @@ | |||
1 | #!/bin/bash | ||
2 | |||
3 | TOKEN=795983515:AAHAPgakm-BbRKNodF9a0z_OH2VDsIxpm_Q | ||
4 | CHAT_ID=4903620 | ||
5 | INPUT=$@ | ||
6 | MESSAGE=${INPUT:-"all done"} | ||
7 | URL="https://api.telegram.org/bot$TOKEN/sendMessage" | ||
8 | |||
9 | curl -s -X POST "$URL" -d chat_id="${CHAT_ID}" -d text="${MESSAGE}" | ||