This is an example of a telegraph bot inclide:
- Registration wizard scene.
- Account base scene.
- Language change base scene.
- Mysql adapter for MySql2 to simplify DB communication.
- Keyboards constructor for easy keyboard processing
- Multilingual support
For any teaching or development purposes.
To run the bot, import the data from DB.sql
into the database and set the correct configuration in config.ts
git clone https://github.com/gunyakov/telegraf-bot-starter
cd telegraf-bot-starter
npm install
npm run start
- dbquery code improvments
- Reg scene validator
- Improve getText for language handler to supply not only a key, but also array of keys.
- Errors resolving
- Code improvments
- Add Language selection scene
- Refactoring of keyboards making algoritm.
- The bot has been rewritten using TypeScript.
- Support for version 4.13.1 of Telegraf.
- Init release