Skip to content

Latest commit

 

History

History
38 lines (26 loc) · 1.15 KB

README.md

File metadata and controls

38 lines (26 loc) · 1.15 KB

dio-telegram-bot

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.

How to use

  1. Clone this repository
git clone https://github.com/ggwadera/dio-telegram-bot.git
cd dio-telegram-bot
  1. Install the npm packages
npm install
  1. Configure your API keys for Telegram, Youtube and DialogFlow
  • For Telegram, save a file in the root directory named token.jsonwith the following contents:
{
  "token": "YOUR-TELEGRAM-TOKEN-HERE"
}
  • For Youtube, save a file in the root directory named youtube-key.jsonwith 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