grammY icon indicating copy to clipboard operation
grammY copied to clipboard

Simplify TypeScript Compilation and Execution Process in Documentation

Open suprunchuk opened this issue 4 months ago • 0 comments

Hello grammY team,

I've noticed a potential area for improvement in the documentation regarding the process of compiling and running TypeScript bots.

Currently, the Getting Started guide instructs users to compile the TypeScript code using npx tsc and then run the resulting JavaScript file with node bot.js. However, this two-step process can be simplified.

In the official Telegram bot example, a more streamlined approach is used:

"scripts": {
  "start": "ts-node ./TutorialBot.ts",
  "dev": "ts-node-dev ./TutorialBot.ts",
}

Now you can easily run it through the command: npm run dev

suprunchuk avatar Oct 24 '24 06:10 suprunchuk