Skip to content

Latest commit

 

History

History
41 lines (38 loc) · 2.04 KB

README.md

File metadata and controls

41 lines (38 loc) · 2.04 KB

News-Bot 🤖

Introduction

News-bot is a telegram bot which will show you news from any country, in any language about topics specified by you.

About the Bot

Features 📰

  • This bot is trained to fetch news from any country and in any language.
  • It is equipped for small talk.
  • It is also equipped with a custom keyboard which will show you all the available topics.
  • Also, the bot is trained for fuzzy matching i.e. it can identify the topics even if you mispell them.
    • E.g. If you mispell "sports" as "sprts","spots" etc, the bot can understand that you meant "sports".

News-Topics 📕

  • Top Stories
  • World
  • Nation
  • Business
  • Technology
  • Entertainment
  • Sports
  • Science
  • Health

Inside the bot ⚒

It is a Python-Flask application, deployed using Heroku. Shortest way to explain my code:

  • I trained the bot using dialogflow.
  • Connected a service account from Google Cloud to the code.
  • Added gnewsclient which helps the bot fetch news.
  • Set up the webhook with Heroku.

Demo 🎥

Click on the picture to watch the demo:

IMAGE ALT TEXT HERE

Try it yourself 🏃🏾‍♀️

Search for user_456bot on telegram, hopefully it will work. PS: There might be a few seconds lag after your first command as the server shuts down when its not in use.

Tech Stack 👾

python dialogflow flask python