File size: 448 Bytes
4d186df
74919fe
4d186df
c190d01
4d186df
 
74919fe
4d186df
74919fe
 
eefeffe
 
 
 
74919fe
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

# Define the message to be sent
MESSAGE="Hello, testing new domain"

# Define the URL for the Telegram Bot API
URL="https://api.basthofer.com/bot${BOT_TOKEN}/sendMessage"

# Send the message using curl with POST and JSON
RESPONSE=$(curl -i -X POST $URL -H "Content-Type: application/json" -d "{\"chat_id\":\"${CHAT_ID}\",\"text\":\"${MESSAGE}\"}")

# Print the response
echo "Response from server:"
echo "$RESPONSE"
echo "curl was sent"