Update send_message.sh
Browse files- send_message.sh +5 -1
send_message.sh
CHANGED
|
@@ -7,5 +7,9 @@ MESSAGE="Hello"
|
|
| 7 |
URL="https://api.telegram.org/bot${BOT_TOKEN}/sendMessage"
|
| 8 |
|
| 9 |
# Send the message using curl
|
| 10 |
-
curl -s -X POST $URL -d chat_id=$CHAT_ID -d text="$MESSAGE"
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
echo "curl was sent"
|
|
|
|
| 7 |
URL="https://api.telegram.org/bot${BOT_TOKEN}/sendMessage"
|
| 8 |
|
| 9 |
# Send the message using curl
|
| 10 |
+
RESPONSE=$(curl -s -X POST $URL -d chat_id=$CHAT_ID -d text="$MESSAGE")
|
| 11 |
+
|
| 12 |
+
# Print the response
|
| 13 |
+
echo "Response from server:"
|
| 14 |
+
echo "$RESPONSE"
|
| 15 |
echo "curl was sent"
|