Skip to content

This is an educational project as part of the Microverse Curriculum. I use Telegram Bot API to connect and create a Bot that replies with the latest data information from the COVID19 API. This means data by country and location. The user can get the latest numbers by country and worldwide. The project was built using Ruby and deployed to Heroku.…

Notifications You must be signed in to change notification settings

santiagorodriguezbermudez/Telegram-Covid-Bot

Repository files navigation

Covid -> Your daily Covid update news

Covid provides the latest data on how the Pandemia has evolved globally and by country over/ All through Telegram.

Provide the latest data from the Pandemic situation worldwide. Start talking with Covid.

Table of Contents

Getting Started

You can chat directly with the bot by searching for @mv_covid_bot on Telegram. Click here.)

Prerequisites

To install this project on your own and create another bot with the same logic, please be sure to install and use:

  • Ruby,
  • Gems within Ruby,
  • Heroku for deployment,
  • Rspec for running tests.

Install

  • Fork this project into your local machine.
  • Create a bot token here and include it on a .env file. Save the variable as 'TOKEN'.
  • Open your project directory on your terminal
  • Install gems by running "bundle install" on your terminal
  • Run 'ruby bin/main.rb' on your terminal.
  • Open Telegram and start talking with @mv_covid_bot

Usage

  • The bot generates a main command menu by writing /start
  • Follow the instructions.

Commands

Start

Provide the main menu and the recent global numbers. /start

Send your location

Share your location to get the stats from your country Share location

See list of countries

Select the 'Select a specific country' to get a list of all of the current countries from which you can get data. List of Countries

Type a specific country

Type a country from the list and see its stats up to date. Search a country

About The Project

This is a educational project as part of the Microverse Curriculum.

Built With

  • Ruby version 2.6.5,
  • Telegram/bot
  • Covid API
  • Rspec

Tests

  • Run rspec for testing bot and covid_api classes. This will mainly test that each country has the data with no problem.

Authors

👤 Santiago Rodriguez

🤝 Contributing

Contributions, issues and feature requests are welcome!

Feel free to check the issues page.

Show your support

Give a ⭐️ if you like this project!

Acknowledgments

  • Special thanks to The Ocicats team from Microverse!
  • Maria Reyes for making the suggestion to work with Telegram
  • Ruby gem: Telegram Bot Ruby

📝 License

Bot Icon of the virus by Arya Icons from the Noun Project This project is MIT licensed.

About

This is an educational project as part of the Microverse Curriculum. I use Telegram Bot API to connect and create a Bot that replies with the latest data information from the COVID19 API. This means data by country and location. The user can get the latest numbers by country and worldwide. The project was built using Ruby and deployed to Heroku.…

Topics

Resources

Stars

Watchers

Forks

Languages