Available in this languages: English | Русский
This is a useful and multifunctional telegram bot for make it easier for students to work with their timetables! This projects goal is to have everything a student will ever need. The code is written for a specific school, but it separates the logic of getting and parsing the information and displaying it. Everyone can (and is encouraged to) contribute!
- Don't store personal data
- Maximum transparency
- Narrow focus
-
Dependencies
npm i -
Compiling TypeScript
npm run compile -
Set all the required variables in the
.envfile
The bot has two modes of operation: Webhooks и Long poll
In the current implementation, the bot works with webhooks only.
-
Launch
npm run start
-
Change this line in
src/index.tsapp.use(`/${secretPath}`, webhookCallback(bot, 'express'));
to
bot.start();
-
Compile code
npm run compile -
Launch
npm run start