Support conversational Bot for Telegram and VK Groups powered by Google's machine learning
This project consists of few parts:
- Bots:
- Support Bot for Telegram
- Support Bot for VK Groups
- Logging bot for Telegram
- Module to query DialogFlow API V1
- Script for loading phrases to DialogFlow AI
Python3 should be already installed.
It is strictly recommended that you use virtual environment for project isolation.
Then use pip (or pip3, if there is a conflict with Python2) to install dependencies:
pip install -r requirements.txtor via pipenv:
pipenv installIt's also possible to deploy this Bot on Heroku: just create new app on Heroku and connect it with your GitHub repo after forking.
You need to register Telegram Bot via @BotFather and receive TELEGRAM_TOKEN and TELEGRAM_CHAT_ID (use @userinfobot for that)
After that copy the file .env-example to .env and paste your info to fields:
TELEGRAM_TOKEN=For proper use you have to get VK account. You need to create a VK Group and create the API key for group in group settings (https://vk.com/your_group?act=tokens)
Paste your info to.env:
VK_GROUP_TOKEN=your_vk_group_tokenPlease see Support Bot for Telegram installation requirements.
Paste your info to.env:
TELEGRAM_LOG_TOKEN=
TELEGRAM_LOG_CHAT_ID=You have to register DialogFlow account
After that find "Developer access token" in project settings an paste it to .env:
DIALOGFLOW_DEV_TOKEN=Please note this app works only with DialogFlow V1 API (Will be shut down on October 23rd, 2019)
The code is written for educational purposes on online-course for web-developers dvmn.org.
