scripts/telegram.sh

11 lines
257 B
Bash
Raw Normal View History

2024-08-29 12:07:22 +03:00
#!/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"