https://github.com/jbrizio/red-bus-telegram-bot
🤖 Telegram bot created with Node.js that inform the available balance of any card.
https://github.com/jbrizio/red-bus-telegram-bot
bots nodejs telegram
Last synced: about 1 year ago
JSON representation
🤖 Telegram bot created with Node.js that inform the available balance of any card.
- Host: GitHub
- URL: https://github.com/jbrizio/red-bus-telegram-bot
- Owner: jbrizio
- Created: 2019-05-13T00:47:04.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-12T06:38:54.000Z (over 3 years ago)
- Last Synced: 2023-02-26T22:52:08.580Z (over 3 years ago)
- Topics: bots, nodejs, telegram
- Language: JavaScript
- Homepage:
- Size: 42 KB
- Stars: 5
- Watchers: 1
- Forks: 1
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# red-bus-telegram-bot
Telegram bot created with Node.js that inform the available balance of any card.
[](https://codeclimate.com/github/jbrizio/red-bus-telegram-bot/maintainability)

## Table of Contents
- [Installation](#installation)
- [Stack](#stack)
- [Contributing](#contributing)
## Installation
1. Create your own bot using Telegram's [BotFather](https://core.telegram.org/bots#3-how-do-i-create-a-bot) and grab your token
2. Clone this repository
3. Go to the folder using `cd ~/red-bus-telegram-bot`
4. Run `npm install`
5. Set `process.env.BOT_TOKEN` to the value, you've got from the BotFather
6. Run `npm start`
7. Find your bot created before on Telegram and press the button `/start` to initialize the wizard
**Note:** The endpoint used to connect with the services of Red Bus, was taken from the [Mobile App](https://github.com/ModernizacionMuniCBA/Cuanto-tengo) "Cuanto Tengo". For security reasons, this was set using environment variable.
## Stack
- [Node.js](https://nodejs.org/) - JavaScript runtime environment
- [Telegraf](https://telegraf.js.org/) - Modern Telegram bot framework
- [Request](https://www.npmjs.com/package/request) - Simplified HTTP client
## Contributing
Pull requests are always welcome!