Skip to content

nicoandmee/new-telegram-app

 
 

Repository files navigation

New Telegram Mini App

Setup

Install mkcert.

brew install mkcert

Get certificates:

mkcert --install
mkcert tma.internal

Move them for use:

mkdir certificates
mv tma.internal-key.pem certificates
mv tma.internal.pem certificates

Edit /etc/hosts:

sudo nvim /etc/hosts

Then add 127.0.0.1 tma.internal line at the end and save (:wq).

Create Telegram mini app with BotFather.

/newapp

Then follow instructions.

Install dependencies:

bun i

Copy the URL: https://tma.internal:5173/ and give it to BotFather.

Then in root .env, add:

LOCAL=true

Run

bun dev

And open the bot in Telegram as mini app.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 96.9%
  • JavaScript 1.6%
  • CSS 1.5%