You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
377 B
14 lines
377 B
#!/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
|
|
|