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
Next revision
Previous revision
сервис_telegram [2025/06/10 08:02]
val
сервис_telegram [2025/06/10 11:05] (current)
val
Line 2: Line 2:
  
   * [[https://​linuxscriptshub.com/​send-telegram-message-linux-scripts/​]]   * [[https://​linuxscriptshub.com/​send-telegram-message-linux-scripts/​]]
 +
 +<​code>​
 +$ cat send-to-telegram.sh
 +</​code><​code>​
 +#!/bin/sh
 +
 +[ "​$1"​ ] && MESSAGE=$1 || MESSAGE="​Hello,​ world!"​
 + ​TOKEN="​768604181156:​AAGB1Qwvd-DAPhFbQiMKR3InggtIvPPEtT8"​
 +CHAT_ID="​1776721761"​
 +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>​
 +
сервис_telegram.1749531760.txt.gz · Last modified: 2025/06/10 08:02 by val