This is a telegram news bot which can fetch the top 5 news about any location, language and topic specified.
- It is a python-Flask application
- It uses gnewsclient to fetch news
- It is trained using dialogflow
- It provides a custom keyboard with the news topics for the ease of the user
- It is deployed using Heroku
This is the code to fetch news from gnewsclient with specific language, location, and topic
client = gnewsclient.NewsClient()
def fetch_news(parameters):
client.language=parameters.get('language')
client.location=parameters.get('geo-country')
client.topic=parameters.get('topic')
return client.get_news()
This are the topics provides by gnewsclient
- Top Stories
- World
- Nation
- Business
- Technology
- Entertainment
- Sports
- Science
- Health
Search for @user_456bot in Telegram, hopefully it will work.