https://github.com/tomiwa-ot/telegram-chatbot
A telegram chatbot built with Chatterbot Python library
https://github.com/tomiwa-ot/telegram-chatbot
chatterbot chatterbot-corpus chatterbot-python-library telegram-chatbot
Last synced: 2 months ago
JSON representation
A telegram chatbot built with Chatterbot Python library
- Host: GitHub
- URL: https://github.com/tomiwa-ot/telegram-chatbot
- Owner: Tomiwa-Ot
- License: mit
- Created: 2021-01-13T19:34:06.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-09-17T11:44:15.000Z (over 3 years ago)
- Last Synced: 2025-04-03T11:55:23.511Z (3 months ago)
- Topics: chatterbot, chatterbot-corpus, chatterbot-python-library, telegram-chatbot
- Language: Python
- Homepage:
- Size: 6.84 KB
- Stars: 6
- Watchers: 2
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Telegram ChatBot
A telegram chatbot built with Chatterbot Python library. The bot trains itself with a pre-computed data set from [ChatterBot Corpus](https://chatterbot.readthedocs.io/en/stable/corpus.html) to engage in a converstaion. The bot stores the chat sqlite3 database named db.sqlite3 and uses this to train/imporve itself.# Requirements
* chatterbot==1.0.0
* chatterbot-corpus
* pyTelegramBotApi# Installation
**Step 1**
```console
root@pc:~# git clone https://github.com/Tropes-Ot/Telegram-ChatBot.git
```
* [Setup virtual environment](https://packaging.python.org/guides/installing-using-pip-and-virtual-environments/#creating-a-virtual-environment)
```console
root@pc:~# pip3 install requirements.txt #listed above
```
**Step 2**
* Create [Telegram Bot](https://core.telegram.org/bots#3-how-do-i-create-a-bot)
* [Disable Group Privacy](https://teleme.io/articles/group_privacy_mode_of_telegram_bots)
* Get the bot API key and set in the __init__.py**Step 3**
```console
root@pc:~# python3 __init__.py
```
* Start converstion with bot