Coder Social home page Coder Social logo

red-bus-telegram-bot's Introduction

red-bus-telegram-bot

Telegram bot created with Node.js that inform the available balance of any card.

Maintainability

Preview

Table of Contents

Installation

  1. Create your own bot using Telegram's BotFather 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 "Cuanto Tengo". For security reasons, this was set using environment variable.

Stack

  • Node.js - JavaScript runtime environment
  • Telegraf - Modern Telegram bot framework
  • Request - Simplified HTTP client

Contributing

Pull requests are always welcome!

red-bus-telegram-bot's People

Contributors

jbrizio avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

martinpastore

red-bus-telegram-bot's Issues

Save cards

This was a recent suggestion from a user:

Feature: Save cards
  Scenario: How to a user running the bot on Telegram
    When the user introduces a new card to know your balance
    Then the user can choose to save the card to prevent write again

Improvement: Remember card number when captcha was incorrect

Feature: Remember card number when captcha was incorrect
  Scenario: User running the bot on Telegram
    When the user introduces the wrong captcha when attempting to check a card's balance
    Then the user should re-introduce the captcha only, not the whole flow

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.