#!/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}"