Skip to content

Latest commit

 

History

History
41 lines (25 loc) · 882 Bytes

README.md

File metadata and controls

41 lines (25 loc) · 882 Bytes

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.