|
#!/bin/bash
|
|
# Set the API token and chat ID
|
|
API_TOKEN=""
|
|
CHAT_ID=""
|
|
|
|
# Set the message text
|
|
MESSAGE="${1}"
|
|
|
|
# Use the curl command to send the message
|
|
curl -s -X POST https://api.telegram.org/bot$API_TOKEN/sendMessage -d chat_id=$CHAT_ID -d text="$MESSAGE"
|