Telegram Bot with TypeScript, Node.js, and Telegraf and deployment configuration for Heroku.
Build a Telegram Bot using TypeScript, Node.js, and Telegraf and deploy it on Heroku
npm run build
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.