A telegram bot that can be initialized on the command line(windows) / terminal(mac & linux) where it responds to specific commands -
/hello
,/quote
, or/latest news
. You can type these commands without prefixing them with the foreward stick(/
) You may search for the bot on telegram with the username @JelilBot.
This is a capstone/assessment project for the ruby module microverse curriculum .
- Preface
- Purpose
- Features
- Presentations
- Built With
- Quick Start
- Dependencies
- Testing
- Author
- Contributing
- The bot has two main features
- Ability to give you the latest news updates from the BBC website.
- It also gives motivational quotes with the author's name.
latest news
quote
hello
start
- You can watch the video presentation here.
- Ruby 2.6.5
- VS Code
- Telegram Bot API
- Type fit Quotes API
- Get a local copy with:
git clone https://github.com/JelilFaisalAbudu/telegram_bot
Or download it as a Zip File. using the green button (Clone or Download) on top of this page.
-
Install Ruby in your system. To install Ruby, you can read the Documentation
-
Navigate to your telegram account if you have one. Or create new telegram account.
-
Create a new bot with the help of BotFather. Use this documentation if you are facing challenges New Bot.
-
Obtain your new bot's token.
-
Go to the Bot class and assign your token to
TEL_BOT_TOKEN
variable.
If you are on windows:
*- Go inside the project folder
*- Right shift '+' right mouse click (Float menu)
*- Open prompt here (Option)
ruby bin/main.rb
-
On your telegram account search for your bot's name
-
Then press the /START button begin interacting.
- rspec
- telegram_bot
Install Rspec gem in your system. To do this:
Open Command Prompt or Terminal and run:
gem install Rspec
Navigate into the project folder and run the following command in the console:
rspec
👤 Jelil Faisal Abudu
- Github: @JelilFaisalAbudu
- Twitter: @JelilAbudu
- Linkedin: jelilfaisalabudu
Contributions, issues and feature requests are welcome! Feel free to check the issues page.