A Telegram bot that reminds my flatmates to throw away the trash by sending reminder messages on Tuesdays from 6am to 8am every 3 minutes.
- create file
telegram_token.secret
in root folder and paste your telegram bot token in it - create file
password.secret
in root folder and write a random password in it - start bot
node src/main.js
- in Telegram use
/init <PASSWORD>
to authorize. The bot will only send messages to the autorized chat. There can only be 1 authorized chat at a time, run the command again in another chat to change the authorized chat. - when the bot starts sending messages, stop it with
/done