diff options
| author | Yigit Sever | 2020-09-16 15:26:42 +0300 |
|---|---|---|
| committer | Yigit Sever | 2020-09-16 15:26:42 +0300 |
| commit | 3a6003cee585dbdabec939940c4de421dbd122fb (patch) | |
| tree | cdf5b9b0d6694738e0cde6b32dddbb84f4cf6e7b /.local/bin/notify_phone | |
| parent | 7419b9fc45ba291d5d10a9f5bea3fa5d33dfedc0 (diff) | |
| download | dotfiles-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_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}" | ||
