#!/bin/bash
# Send to this user
CHATID=$1
# BotID
KEY="здесь_bot_key"
# Timeout
TIME="10"
URL="https://api.telegram.org/bot$KEY/sendMessage"
TEXT=$2
curl --proxy socks5://proxyuser:proxypasswd@proxyaddress:proxyport --silent --max-time $TIME --data "chat_id=$CHATID&disable_web_page_preview=1&text=$TEXT" $URL >/dev/null
https://en.m.wikipedia.org/wiki/Wake-on-LAN