https://github.com/dobraczka/openqabot
This is a telegram bot utilizing openQA(http://openqa.aksw.org/)
https://github.com/dobraczka/openqabot
chatbots gsoc-2017 question-answering telegram-bot
Last synced: 8 months ago
JSON representation
This is a telegram bot utilizing openQA(http://openqa.aksw.org/)
- Host: GitHub
- URL: https://github.com/dobraczka/openqabot
- Owner: dobraczka
- Created: 2017-02-26T14:51:50.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-03-04T14:56:01.000Z (over 8 years ago)
- Last Synced: 2025-01-01T12:28:12.687Z (10 months ago)
- Topics: chatbots, gsoc-2017, question-answering, telegram-bot
- Language: Python
- Size: 8.79 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# OpenQABot
This repository contains a minimal example how the REST API of OpenQA(http://openqa.aksw.org/) can be used as a telegram bot using the telegram-bot wrapper(https://github.com/python-telegram-bot/python-telegram-bot)# Dependencies
Use `pip` to install the dependencies:`sudo pip install SPARQLWrapper requests python-telegram-bot emoji --upgrade`
# Try it
If you have a telegram account you can just chat with the bot at (https://telegram.me/OpenQABot)# Examples
You have to write `/start` to start the conversation with the bot and then you can try to ask questions like:`Give me the capital of Germany`
`List the children of Margaret Thatcher`
# Usage
If you want to make your own bot, you need to register a bot and get an API Token from (https://telegram.me/botfather) if you did not already do this.Run the `openQABot.py` file and provide the API Token as argument:
`python openQABot.py `
# Known Issues
The queries can sometimes take a while