Skip to content

Latest commit

 

History

History
38 lines (23 loc) · 1.42 KB

README.md

File metadata and controls

38 lines (23 loc) · 1.42 KB

MTS Telegram bot

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.

Developing

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.

Building

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.

Demo

MTS Payment Telegram bot is available at the following link: MTS Payment Telegram Bot

Links