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/08/28 17:08]
val
сервис_telegram [2025/08/29 15:27] (current)
val
Line 2: Line 2:
  
   * [[https://​linuxscriptshub.com/​send-telegram-message-linux-scripts/​]]   * [[https://​linuxscriptshub.com/​send-telegram-message-linux-scripts/​]]
 +  * [[https://​core.telegram.org/​bots/​tutorial|From BotFather to 'Hello World'​]]
 +  * [[https://​dev.to/​nathannosudo/​bash-script-to-send-a-message-in-telegram-from-your-terminal-20c7|Bash Script to Send a Message in Telegram from your Terminal!]]
 +  * [[https://​stackoverflow.com/​questions/​32423837/​telegram-bot-how-to-get-a-group-chat-id|Telegram Bot - how to get a group chat id?]]
  
 <​code>​ <​code>​
Line 10: Line 13:
 choose name: Val spec N choose name: Val spec N
  
-choose username: ​ValspecN_bot+choose username: ​ValspecNbot
  
 ... ...
Line 18: Line 21:
 823268117438:​AAE5W1PlK3ex0udwaQeznHG5ejsQNXc-J58 823268117438:​AAE5W1PlK3ex0udwaQeznHG5ejsQNXc-J58
 ... ...
 +</​code><​code>​
 /start /start
 ... ...
 +</​code><​code>​
 https://​api.telegram.org/​bot823268117438:​AAE5W1PlK3ex0udwaQeznHG5ejsQNXc-J58/​getUpdates https://​api.telegram.org/​bot823268117438:​AAE5W1PlK3ex0udwaQeznHG5ejsQNXc-J58/​getUpdates
 +</​code><​code>​
 ... ...
         "​chat":​ {         "​chat":​ {
           "​id":​ 1776721761           "​id":​ 1776721761
 ... ...
- +</​code><​code>​
 $ cat send-to-telegram.sh $ cat send-to-telegram.sh
 </​code><​code>​ </​code><​code>​
Line 41: Line 46:
 </​code>​ </​code>​
  
 +  * [[Использование библиотеки PAM#​Использование pam_exec для регистрации подключений]]
 +<​code>​
 +debian:~# chmod 700 /​usr/​local/​bin/​send-to-telegram.sh
 +</​code>​
сервис_telegram.1756390093.txt.gz · Last modified: 2025/08/28 17:08 by val