Skip to content

pirasalbe/Telegram-Bot_Node.js

Repository files navigation

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published