Skip to content

gloriamaris/chatbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

chatbot

Chatbot for telegram for is238 using node js

Basic Setup

Install [ngrok] (https://dashboard.ngrok.com/get-started/setup)

Create an .env file

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

Generating environment values

Telegram token

Generate a Telegram token by searching for BotFather on Telegram. Instructions here.

Ngrok URL

Execute this command:

ngrok http 5000

Plug those on the .env file.

How to run

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.

About

Chatbot for telegram for is238 using node

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors