• Stars
    star
    365
  • Rank 116,094 (Top 3 %)
  • Language
    Python
  • License
    GNU General Publi...
  • Created over 7 years ago
  • Updated 12 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Telegram Bot @RastreioBot

RastreioBot Logo

RastreioBot

Build Status Deploy Twitter Follow

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

We use Poetry to manage our dependencies. Check out its Poetry guide to install it on your machine.

To install the required packages, use the command below. It will install the runtime and also the development dependencies (e.g. Pytest).

$ poetry install

Create a file bot.conf following bot.conf_sample.

TOKEN Bot token generated by BotFather

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

*_log Log files

patreon List of people that donate to the bot

Banned List of banned users

usuario User provived by Correios

senha Password provided by Correios

token Token provided by Correios

key Key provided by TrackingMore

url Sentry URL

MongoDB

RaspberryPi

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

Mac

brew install mongodb-community
brew services start mongodb-community

SQLite

touch data_base.db

create db structure

CREATE TABLE assinantes (
        id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
        chatid TEXT,
        picpayid TEXT);

Commands available

$ poetry run rastreio --help
Usage: rastreio [OPTIONS] COMMAND [ARGS]...

Options:
  --help  Show this message and exit.

Commands:
  packages:clean                  Clean old and duplicated packages
  packages:update                 Update active packages
  packages:delete <package-code>  Delete a package
  bot:run [--maintenance]         Set bot to maintenance mode

Running tests

The tests are running on pytest, so, in order to run them, just do

poetry run pytest

Contribute

Pull requests and issues are welcome!

Contact

Telegram

Site

More Repositories

1

telegram-id

How to get an id on Telegram Messenger
195
star
2

Send2KindleBot

Send to Kindle Telegram Bot
Python
165
star
3

Zabbix-Telegram-Notification

Zabbix notifications on Telegram
70
star
4

Video2Telegram

Watches a folder. If new file, sends gif using Telegram Messenger.
Python
30
star
5

Rss2Telegram

Automatically sends rss feed posts to Telegram
Python
20
star
6

Telegram-Safe-Bot

Telegram Bot @Safe_Bot
Python
15
star
7

ClientesChat

A melhor maneira de atender seus clientes no Telegram!
Python
14
star
8

Docker-MongoDB-RPi

MongoDB Docker image for RaspberryPi
13
star
9

telegram-urlprobot

Telegram Bot http://telegram.me/urlprobot
Python
13
star
10

CentralDeTudo

Telegram @CentralDeTudo Bot
Python
10
star
11

telegram-lmgtfy_bot

Python
7
star
12

VideoCaptionsBot

Telegram Bot @VideoCaptionsBot
Python
7
star
13

ControlID2Telegram

Sends a text message everytime a door opens
Python
6
star
14

PromoApps

PromoApps Telegram Channel
Python
6
star
15

Voice2Text

Descrição automática de mensagens de voz em conversas privadas no Telegram
Python
6
star
16

Shell-Zabbix-WebScenario

Shell script that adds a Web Scenario and a Trigger on Zabbix
Shell
6
star
17

Weather2Telegram

Envio automático de previsão do tempo do INPE pelo Telegram
Python
5
star
18

Alohomora

Opens ControlID IDFlex when sees movement
Python
4
star
19

AcademiaNetflixBot

Python
4
star
20

ChatGPT-Telegram-Bot

Python
4
star
21

RegrasRobot

Bot do Telegram para aprovação de entrada de pessoas em grupo após leitura de regras
Python
4
star
22

Estatisticas-RastreioBot

3
star
23

PromoPassagens

Promoções de passagens aéreas no Telegram
Python
3
star
24

QuestoesDeConcursoBot

Telegram Bot QuestoesDeConcursoBot
Python
3
star
25

Document2Telegram

Watches a folder. If new file, sends it using Telegram Messenger.
Python
2
star
26

BsbDF

Telegram Public Channel
Python
2
star
27

S3Backup

Amazon S3 Backup
Python
2
star
28

Metro-Jornal-Telegram

Python
2
star
29

Calendar-Telegram-Alert

Python
1
star
30

Obra-Regular

CSS
1
star
31

ChatDeVozBot

Python
1
star
32

MQTT2Zabbix

MQTT to Zabbix
Python
1
star
33

TrafficStatus2Telegram

Python
1
star
34

ThreadLinkBot

Python
1
star