Chatbot for telegram for is238 using node js
Install [ngrok] (https://dashboard.ngrok.com/get-started/setup)
Create an environment file .env on the root folder with the following parameters:
API_TOKEN=<telegram token>
SERVER_URL=<ngrok url for local development>
TELEGRAM_API_URL=https://api.telegram.org
Generate a Telegram token by searching for BotFather on Telegram. Instructions here.
Execute this command:
ngrok http 5000
Plug those on the .env file.
Install the necessary dependencies:
npm install
Run the server using:
npm run dev
If the code works, link should be working on the t.me/<link> link provided by BotFather.