User Tools

Site Tools


сервис_telegram

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
сервис_telegram [2025/06/10 08:52]
val
сервис_telegram [2025/06/10 11:05] (current)
val
Line 9: Line 9:
  
 [ "​$1"​ ] && MESSAGE=$1 || MESSAGE="​Hello,​ world!"​ [ "​$1"​ ] && MESSAGE=$1 || MESSAGE="​Hello,​ world!"​
-TOKEN="​768604181156:​AAGB1Qwvd-DAPhFbQiMKR3InggtIvPPEtT8"​+ TOKEN="​768604181156:​AAGB1Qwvd-DAPhFbQiMKR3InggtIvPPEtT8"​
 CHAT_ID="​1776721761"​ CHAT_ID="​1776721761"​
 curl -s -X POST https://​api.telegram.org/​bot$TOKEN/​sendMessage -d chat_id=$CHAT_ID -d text="​$MESSAGE"​ curl -s -X POST https://​api.telegram.org/​bot$TOKEN/​sendMessage -d chat_id=$CHAT_ID -d text="​$MESSAGE"​
 +</​code><​code>​
 +$ make buildworld; /​home/​val/​send-to-telegram.sh FINISH
 </​code>​ </​code>​
 +
сервис_telegram.txt · Last modified: 2025/06/10 11:05 by val