This project is a Telegram bot web app for the pay.mos.ru service managed by MTS. It allows users of the portal to pay their fines and donate to charities through the Telegram bot.
Once you've installed the dependencies with npm install
, start a development server:
npm run dev
For the Telegram bot (using polling method) to run, you need to access the dev server at least once in the beginning to run the script in hooks.server.ts
.
Since the bot only works with HTTPS (unless you setup a testing account on a Telegram test server), the web app development must be done on the production server.
To create a production version of your app:
npm run build
You can preview the production build with npm run preview
.
The recommended way to run the production build is using npm start
because it also sets the appropriate headers for CSRF protection.
MTS Payment Telegram bot is available at the following link: MTS Payment Telegram Bot