All Projects → GabrielRF → Rastreiobot

GabrielRF / Rastreiobot

Licence: gpl-3.0
Telegram Bot @RastreioBot

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Rastreiobot

Bot Api Base
Clear and simple Telegram bot API
Stars: ✭ 122 (-37.76%)
Mutual labels:  telegram-bot-api, telegram-bot, telegram
Teledart
A Dart library interfacing with the latest Telegram Bot API.
Stars: ✭ 142 (-27.55%)
Mutual labels:  telegram-bot-api, telegram-bot, telegram
University News Notifier
📚 University news notifier
Stars: ✭ 56 (-71.43%)
Mutual labels:  telegram-bot-api, telegram-bot, telegram
Botserver
http://telegram.org Bot API Webhooks Framework, for Rubyists
Stars: ✭ 125 (-36.22%)
Mutual labels:  telegram-bot-api, telegram-bot, telegram
Java Telegram Bot Tutorial
Java Telegram Bot Tutorial. Feel free to submit issue if you found a mistake.
Stars: ✭ 165 (-15.82%)
Mutual labels:  telegram-bot-api, telegram-bot, telegram
Bot Telegram
Exemplo de como criar um BOT para o melhor app de mensagens do mundo: Telegram.
Stars: ✭ 53 (-72.96%)
Mutual labels:  telegram-bot-api, telegram-bot, telegram
Telegram Spring Boot Starter
Telegram Bot API Spring Boot Starter
Stars: ✭ 79 (-59.69%)
Mutual labels:  telegram-bot-api, telegram-bot, telegram
Informer
A Telegram Mass Surveillance Bot in Python
Stars: ✭ 745 (+280.1%)
Mutual labels:  telegram-bot-api, telegram-bot, telegram
Integram
Integrate Telegram into your workflow – Trello, Gitlab, Bitbucket and other bots
Stars: ✭ 1,365 (+596.43%)
Mutual labels:  telegram-bot-api, telegram-bot, telegram
Telebot.nim
Async client for Telegram Bot API in pure Nim [Bot API 5.1]
Stars: ✭ 93 (-52.55%)
Mutual labels:  telegram-bot-api, telegram-bot, telegram
Spytrojan keylogger
[Solo para programadores] Troyano espía | Keylogger solo para Windows, se replica en el sistema y se inicia automaticamente al iniciar sesión. | Envío de registro mediante [Base de Datos], [Gmail] o [BotTelegram].
Stars: ✭ 32 (-83.67%)
Mutual labels:  telegram-bot-api, telegram-bot, telegram
Zanzara
Asynchronous PHP Telegram Bot Framework built on top of ReactPHP
Stars: ✭ 107 (-45.41%)
Mutual labels:  telegram-bot-api, telegram-bot, telegram
Mypackbot
🤖 Your own unlimited pack of Telegram-stickers
Stars: ✭ 18 (-90.82%)
Mutual labels:  telegram-bot-api, telegram-bot, telegram
Telegram.bot
.NET Client for Telegram Bot API
Stars: ✭ 1,964 (+902.04%)
Mutual labels:  telegram-bot-api, telegram-bot, telegram
Java Telegram Bot Api
Telegram Bot API for Java
Stars: ✭ 819 (+317.86%)
Mutual labels:  telegram-bot-api, telegram-bot, telegram
Telebot
The easy way to write Telegram bots in Node.js
Stars: ✭ 1,096 (+459.18%)
Mutual labels:  telegram-bot-api, telegram-bot, telegram
Kotlin Telegram Bot
🤖 A wrapper for the Telegram Bot API written in Kotlin
Stars: ✭ 337 (+71.94%)
Mutual labels:  telegram-bot-api, telegram-bot, telegram
Pytelegrambotapi
Python Telegram bot api.
Stars: ✭ 4,986 (+2443.88%)
Mutual labels:  telegram-bot-api, telegram-bot, telegram
Libtelegram
Fast, efficient, header-only C++ Telegram bot API library using polling or FastCGI
Stars: ✭ 88 (-55.1%)
Mutual labels:  telegram-bot-api, telegram-bot, telegram
Vk To Telegram Bot
Bot for auto-reposting posts from VK to Telegram channel
Stars: ✭ 103 (-47.45%)
Mutual labels:  telegram-bot-api, telegram-bot, telegram

RastreioBot

Build Status Donate 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

First, create a virtual environment for your project (so it don't mixup with your other libraries versions):

python3 -m venv rastreiobotenv

If you don't have it installed, check here

and activate your environment:

. rastreiobotenv/bin/activate

After cloning/downloading the repository, install required packages:

pip install -r requirements.txt

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);

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; /usr/bin/python3 /usr/local/bin/RastreioBot/routine.py 0
*/15 * * * * cd /usr/local/bin/RastreioBot; /usr/bin/python3 /usr/local/bin/RastreioBot/routine.py 1
*/15 * * * * cd /usr/local/bin/RastreioBot; /usr/bin/python3 /usr/local/bin/RastreioBot/routine.py 2
*/15 * * * * cd /usr/local/bin/RastreioBot; /usr/bin/python3 /usr/local/bin/RastreioBot/routine.py 3
...

Running tests

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

pytest

Contribute

Pull requests and issues are welcome!

Contact

Telegram

Site

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].