Telegram bot for track Correios objects.
- /add
code
name
- Add object - /remove
code
- Remove object - /check
code
- Check object - /list - List objects
- /help - Help
# Bot
Create and configure .env file like .env.example.
# Create an Telegram bot
Find @BotFather on Telegram, type /newbot and follow the instructions.
# Username
Get your bot username and set 'TELEGRAM_USERNAME' in .env.
# Token
Get your token from @BotFather and set 'TELEGRAM_TOKEN' in .env.
# Install
Install PostgreSQL and create an database.
# Configure
Set PostgreSQL 'POSTGRESQL_USERNAME', 'POSTGRESQL_PASSWORD', 'POSTGRESQL_DATABASE', 'POSTGRESQL_HOST' and 'POSTGRESQL_DIALECT' in .env.
# Install dependencies
npm install
# Create tables
npm run migrate
# Seed tables
npm run seed
# Start
npm start