Skip to content

leolpaz/Telegram-Bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build a Bot

On this project I built a telegram bot that mimics the process to order pizzas use /start to start

screenshot1

screenshot2

screenshot3

screenshot4

screenshot5

screenshot6

screenshot7

Setup

  • Install git
  • Open your local terminal for your specific OS.
  • Change the directory using the cd terminal command to a folder.
  • Run git clone (link of this repository).
  • Install Ruby, google is going to have information about how to install it on your OS.
  • cd path/to/telegram-bot
  • If you wanna use your own token replace it on the env file or create a new one there, you can get one at the BotFather bot
  • Run on the terminal: bundle install, to install all the dependencies
  • Run on the terminal: ruby bin/main.rb
  • Use the link given by the botfather
  • Search for the name you gave your bot on telegram, for the token on the env file it is @pizzamvcapstone_bot, alternatively use this link
  • Talk to the telegram bot

Testing

  • Run the Setup up to "cd path/to/telegram-bot", skipping steps you already completed
  • Run on the terminal: rspec spec/bot_spec.rb

If you see this:

screenshot8

It means that everything is working as intended.

Built With

  • Ruby
  • Telegram Bot Ruby gem
  • Telegram Bot API

Authors

👤 Leonardo L. da Paz

Acknowledgments

  • Microverse
  • The staff behind Telegram Bot API
  • My standup team

License

This project is MIT licensed.

About

On this project, I built a telegram bot that mimics the process to order pizzas.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published