Project made available by Digital Innovation One where a bot for Telegram that sends videos of training and exercises requested by the user is developed using Node.js and DialogFlow from Google for natural language processing.
- Clone this repository
git clone https://github.com/ggwadera/dio-telegram-bot.git
cd dio-telegram-bot
- Install the npm packages
npm install
- Configure your API keys for Telegram, Youtube and DialogFlow
- For Telegram, save a file in the root directory named
token.json
with the following contents:
{
"token": "YOUR-TELEGRAM-TOKEN-HERE"
}
- For Youtube, save a file in the root directory named
youtube-key.json
with the following contents:
{
"key": "YOUR-YOUTUBE-API-KEY-HERE"
}
- For DialogFlow, download the key file for your project as JSON in your Google Cloud Platform service accounts and save it in the root directory with the name
dialogflow-config.js