/RastreioBot

Telegram Bot @RastreioBot

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

Donate Twitter Follow

Rastreiobot

About

This is a Telegram Bot that tracks packages from the Brazilian Mail Service. It runs on Python 3 and uses MongoDB.

Try it!

Setup

After cloning/downloading the repository, install required packages:

pip install -r requirements.txt

Create a file bot.conf containing:

[RASTREIOBOT]
TOKEN = 
int_check = 3600
log_file = 

TOKEN Bot token generated by BotFather

int_check Minimum interval between checks for the same package (3600 means 1 hour)

log_file Log file

Run MongoDB!

For RaspberryPi: https://github.com/GabrielRF/Docker-MongoDB-RPi

Run

To receive messages:

python rastreiobot.py

To check for updates, I recommend a cronjob that runs every 15 min.

Type crontab -e and add to the end of the file:

*/15 * * * * cd /usr/local/bin/RastreioBot; /root/.virtualenvs/RastreioBot/bin/python3 /usr/local/bin/RastreioBot/routine.py

Contribute

Pull requests are welcome!

Contact

Telegram

Site