#!/usr/bin/env sh PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin KEY=$1 CHATID=$2 TIME="4" URL="https://api.telegram.org/bot$KEY/sendMessage" MESSAGE="Confirmation: The server appears online! One moment while I collect some server information..." curl -s --max-time $TIME -d "chat_id=${CHATID}&disable_web_page_preview=1&text=${MESSAGE}" $URL >/dev/null