From 3a6003cee585dbdabec939940c4de421dbd122fb Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Wed, 16 Sep 2020 15:26:42 +0300 Subject: move rest of the scripts --- .local/bin/notify_phone | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 .local/bin/notify_phone (limited to '.local/bin/notify_phone') 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 @@ +#!/bin/bash + +TOKEN=795983515:AAHAPgakm-BbRKNodF9a0z_OH2VDsIxpm_Q +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}" -- cgit v1.2.3-70-g09d2