#!/bin/bash TOKEN=$(pass telegram/notifier) 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}"