ServerBot/func.sh

7 lines
177 B
Bash
Raw Normal View History

2019-05-02 20:41:03 +02:00
#!/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
2019-05-02 20:41:03 +02:00
}