summaryrefslogtreecommitdiffstats
path: root/.local/bin/notify_phone
diff options
context:
space:
mode:
Diffstat (limited to '.local/bin/notify_phone')
-rwxr-xr-x.local/bin/notify_phone9
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
3TOKEN=795983515:AAHAPgakm-BbRKNodF9a0z_OH2VDsIxpm_Q
4CHAT_ID=4903620
5INPUT=$@
6MESSAGE=${INPUT:-"all done"}
7URL="https://api.telegram.org/bot$TOKEN/sendMessage"
8
9curl -s -X POST "$URL" -d chat_id="${CHAT_ID}" -d text="${MESSAGE}"