tma-tunnel

0.0.7 • Public • Published

TMA Tunnel

A utility that allows you to make a server on your local computer public uses ngrok. The created address will be automatically inserted into the menu button of your telegram bot. Once the tunnel is stopped, the default button will be returned.

image.png

Install

npm install tma-tunnel -g

Usage

First of all, it is assumed that you have already installed ngrok on your device.

1. Configuration file

Create a tma-tunnel.config.json file in the root of the project. Specify the following parameters in it:

botToken

Token from the bot settings is required to work with the API. Required field.

userIds

An array of user ids who need to change the link in the menu button. Required field.

Example file:

{
  "botToken": "12345:N9tOKvKA8FEnccRCJewzEzPYyyLlWnrqWSQ",
  "userIds": [12345, 23456]
}

2. Launch

Run your project and make a call in the project console:

tma-tunnel --port=5172

Or if the dependency is installed locally:

npx tma-tunnel --port=5172


Order the development of TMA or TON projects:

Readme

Keywords

none

Package Sidebar

Install

npm i tma-tunnel

Weekly Downloads

2

Version

0.0.7

License

MIT

Unpacked Size

5.22 kB

Total Files

4

Last publish

Collaborators

  • zu6koff
  • foxyess