post / send_message.sh
zuehue's picture
Update send_message.sh
eefeffe verified
raw
history blame
371 Bytes
#!/bin/sh
echo "hello niggas"
# Define the message to be sent
MESSAGE="Hello"
# Define the URL for the Telegram Bot API
URL="https://api.telegram.org/bot${BOT_TOKEN}/sendMessage"
# Send the message using curl
RESPONSE=$(curl -s -X POST $URL -d chat_id=$CHAT_ID -d text="$MESSAGE")
# Print the response
echo "Response from server:"
echo "$RESPONSE"
echo "curl was sent"