User Tools

Site Tools


сервис_telegram

Differences

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

Link to this comparison view

Next revision
Previous revision
сервис_telegram [2025/06/10 07:45]
val created
сервис_telegram [2025/06/10 11:05] (current)
val
Line 1: Line 1:
 ====== Сервис Telegram ====== ====== Сервис Telegram ======
 +
 +  * [[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.1749530702.txt.gz · Last modified: 2025/06/10 07:45 by val