pirasalbe / Telegram-Bot_Node.js

Telegram Bot with TypeScript, Node.js, and Telegraf and deployment configuration for Heroku

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Telegram Bot

Telegram Bot with TypeScript, Node.js, and Telegraf and deployment configuration for Heroku.

Medium article

Build a Telegram Bot using TypeScript, Node.js, and Telegraf and deploy it on Heroku

Build the project with TypeScript

npm run build

Run the project

Start script

npm start

 

Define token and run the project

BOT_TOKEN="110201543:AAHdqTcvCH1vGWJxfSeofSAs0K5PALDsaw" npm start

Replace the token in the command, which is invalid, with your own.

 

Define token and chat id and run the project

BOT_TOKEN="110201543:AAHdqTcvCH1vGWJxfSeofSAs0K5PALDsaw" CHAT_ID="123456789" npm start

Replace the chat id in the command, which is invalid, with your own.

About

Telegram Bot with TypeScript, Node.js, and Telegraf and deployment configuration for Heroku

License:GNU General Public License v3.0


Languages

Language:TypeScript 85.5%Language:JavaScript 14.5%