post / send_message.sh
zuehue's picture
Create send_message.sh
4d186df verified
raw
history blame
252 Bytes
#!/bin/sh
# 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
curl -s -X POST $URL -d chat_id=$CHAT_ID -d text="$MESSAGE"