grammY
grammY copied to clipboard
Simplify TypeScript Compilation and Execution Process in Documentation
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