【文件属性】:
文件名称:Telegram-api-msg-bot:Shell脚本使用BOT将消息发送到Telegram
文件大小:2KB
文件格式:ZIP
更新时间:2021-05-12 01:03:17
Shell
Telegram-api-msg-bot
Shell脚本使用BOT将消息发送到Telegram
要配置您的机器人,RTFM:
安装
git clone https://github.com/area31/Telegram-api-msg-bot.git mv Telegram-api-msg-bot /opt
在send-msg-telegram.conf文件中配置您的API KEY
DEBUG="0"
KEY="KEY HERE"
MSG_FILE="/opt/Telegram-api-msg-bot/msg.txt"
要调试,请在$ DEBUG上设置1
在msg.txt文件中以正确的格式配置警报
Time | MSG 例子:
22:40|Hora de dormir
4:20|virjes everywhere
添加到crontab
* * * * * root /opt/