summaryrefslogtreecommitdiffstats
path: root/.local/bin/notify_phone
diff options
context:
space:
mode:
authorYigit Sever2020-09-16 15:26:42 +0300
committerYigit Sever2020-09-16 15:26:42 +0300
commit3a6003cee585dbdabec939940c4de421dbd122fb (patch)
treecdf5b9b0d6694738e0cde6b32dddbb84f4cf6e7b /.local/bin/notify_phone
parent7419b9fc45ba291d5d10a9f5bea3fa5d33dfedc0 (diff)
downloaddotfiles-3a6003cee585dbdabec939940c4de421dbd122fb.tar.gz
dotfiles-3a6003cee585dbdabec939940c4de421dbd122fb.tar.bz2
dotfiles-3a6003cee585dbdabec939940c4de421dbd122fb.zip
move rest of the scripts
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}"