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/10/13 09:19]
val
сервис_telegram [2025/10/13 16:32] (current)
val
Line 19: Line 19:
 ... ...
 Use this token to access the HTTP API: Use this token to access the HTTP API:
-823268117438:AAE5W1PlK3ex0udwaQeznHG5ejsQNXc-J58+NNNNNNNNNNNN:MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
 ... ...
 </​code><​code>​ </​code><​code>​
 +t.me/​ValspecNbot
 +
 /start /start
-... 
  
-### /mybots +test
-### /deletebot+
 ... ...
 </​code><​code>​ </​code><​code>​
-https://​api.telegram.org/​bot823268117438:AAE5W1PlK3ex0udwaQeznHG5ejsQNXc-J58/getUpdates+https://​api.telegram.org/​botNNNNNNNNNNNN:MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM/getUpdates
 </​code><​code>​ </​code><​code>​
 ... ...
         "​chat":​ {         "​chat":​ {
-          "​id": ​1776721761+          "​id": ​YYYYYYYYYY
 ... ...
 </​code><​code>​ </​code><​code>​
Line 43: Line 43:
 #​MESSAGE=$(cat) #​MESSAGE=$(cat)
  
- ​TOKEN="​768604181156:AAGB1Qwvd-DAPhFbQiMKR3InggtIvPPEtT8+ ​TOKEN="​NNNNNNNNNNNN:MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
-CHAT_ID="​1776721761"+CHAT_ID="​YYYYYYYYYY"
 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>​ </​code><​code>​
-$ time make buildworld/home/val/​send-to-telegram.sh FINISH+$ time sudo ipa-server-install./​send-to-telegram.sh FINISH
 </​code>​ </​code>​
  
Line 53: Line 53:
 <​code>​ <​code>​
 debian:~# chmod 700 /​usr/​local/​bin/​send-to-telegram.sh debian:~# chmod 700 /​usr/​local/​bin/​send-to-telegram.sh
 +</​code><​code>​
 +BotFather
 +
 +### /mybots
 +### /deletebot
 +...
 </​code>​ </​code>​
сервис_telegram.1760336347.txt.gz · Last modified: 2025/10/13 09:19 by val