ServerBot/func.sh

7 lines
177 B
Bash
Executable File

#!/bin/bash
#1. arg = text
send() {
echo "Sending $1 to ${userid}"
curl --data "chat_id=${userid}&text=$1" -s "https://api.telegram.org/bot${token}/sendMessage" > /dev/null
}