A telegram bot that sends an automated message for COVID19 Malta's statistics.
- Create a new bot using @Botfather to get a token in the format
123456789:abcabcabc
- Get the chat/channel id from here
- Paste the bot token in
TELOXIDE_TOKEN
and also paste in theCHANNEL_ID
in the.env-example
- Rename
.env-example
to.env
- Run
cargo build --release
(if not deploying via docker) - Run the executable in
target/release/covid19-mt-bot
(if not deploying via docker)
7.1. After you have set up your enviroment, build the docker image by running docker build -t covid19-mt-bot .
7.2. Once you have built the docker image, create a new container by running docker run -d covid19-mt-bot