Skip to content

Latest commit

 

History

History
45 lines (29 loc) · 712 Bytes

README.md

File metadata and controls

45 lines (29 loc) · 712 Bytes

Telegram-api-msg-bot

Shell Script to send messages to Telegram using BOT

To configure your bot, RTFM:

https://core.telegram.org/bots

Install

git clone https://github.com/area31/Telegram-api-msg-bot.git mv Telegram-api-msg-bot /opt

Configure your API KEY in file send-msg-telegram.conf

DEBUG="0"
KEY="KEY HERE"
MSG_FILE="/opt/Telegram-api-msg-bot/msg.txt"
  • To debug, set 1 on $DEBUG

Configure your alerts on correct format in file msg.txt

Time | MSG

Example:

22:40|Hora de dormir
4:20|virjes everywhere

Add to crontab

* * * * * root /opt/Telegram-api-msg-bot/send-msg-telegram msg