Git Product home page Git Product logo

bot_e3_telegram's Introduction

Bot_E3_telegram

The designed chatbot follows the guides for connecting the APIs of Telegram, Wolframalpha and Twitter.

  1. The idea behind this project is to show the conversational skills of the Wolframalpha artificial intelligence by means of Telegram. It can be also used as a bot for data inquiries to search in both Wolframalpha and Wikipedia search engines.
  2. This bot is also designed for predicting the real risk transmitted by a Twitter post with a logistic regression estimator.

This bot is currently available in telegram and mounted on AWS-EC2 free instance.

Table of content

  1. Main Diagram

  2. Installation requirements

  3. API Basic configuration

  4. Conversational results

  5. Emergency predictor sample

Main diagram

A diagram of the implementation is shown below:

Installation requirements

Install or upgrade python-telegram-bot by the command:

$ pip install python-telegram-bot --upgrade

Wolframalpha libraries are required. Install them with:

$ pip install wolframalpha

Install twitter libraries by:

$ pip install tweepy

Basic configuration

After creating a bot in telegram with the help of @BotFather. Insert your token in the line:

updater =  Updater('', use_context=True) # Insert here API code of telegram

Moreover, you should be registered as Wolframalpha developer, then insert your token in line:

app_id = '' # Insert here API code of wolframalpha 
client = wolframalpha.Client(app_id)

Finally, you should log in as Twitter developer, then insert your keys in lines:

consumer_key = ""
consumer_secret = ""
access_token = ""
access_token_secret = ""
# authorization of consumer key and consumer secret
auth = tweepy.OAuthHandler(consumer_key, consumer_secret)
# set access to user's access key and access secret 
auth.set_access_token(access_token, access_token_secret)
# calling the api 
api = tweepy.API(auth)

Conversational results

Emergency predictor sample

- Visit him at: https://t.me/E3_demoBot

bot_e3_telegram's People

Contributors

erikycd avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.