Skip to content

A simple Telegram bot built to fetch current BBC latest news. It also fetches and displays random quotes.

License

Notifications You must be signed in to change notification settings

JelilFaisalAbudu/telegram_bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Telegram_bot(@JelilBot)

screenshot

Preface

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.

Purpose

This is a capstone/assessment project for the ruby module microverse curriculum .

Features

  • 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.

Commands To Use

latest news
quote
hello
start

Presentations

Built With

  • Ruby 2.6.5
  • VS Code
  • Telegram Bot API
  • Type fit Quotes API

Quick Start

How To Get a Local Copy

  • 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.

Run on terminal/prompt

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.

Dependencies

  • rspec
  • telegram_bot

Testing

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

Authors Hireable

👤 Jelil Faisal Abudu

🤝 Contributing

Contributions, issues and feature requests are welcome! Feel free to check the issues page.

Show your support

About

A simple Telegram bot built to fetch current BBC latest news. It also fetches and displays random quotes.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages