added bot scripts

This commit is contained in:
2022-05-23 08:36:53 +02:00
parent ab4222c16a
commit 87383d807a
4 changed files with 26 additions and 8 deletions
+8
View File
@@ -0,0 +1,8 @@
#!/bin/bash
TOKEN="5383183749:AAHV8pc9yN_h_LNfixOJXAvVYCNcby0HlCY"
ID="717637871"
MENSAJE=$(</dev/stdin)
URL="https://api.telegram.org/bot$TOKEN/sendMessage"
curl -s -X POST $URL -d chat_id=$ID -d text="$MENSAJE" > /dev/null