Skip to content

taiga-labs/telegram-miniapp-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

telegram-miniapp-template

About

Fullstack Telegram WebApp (aiogram 3 + fastapi + socketio + Vanilla JS)
Run Docker compose to test WebApp with self-signed certs on your local machine

Quickstart

  1. create template database
sudo -u postgres psql -c 'create database template;'
  1. run alembic migration
sudo python alembic_tool.py
  1. set required env variables
    APP_CONFIG__DB__URL - database url
    APP_CONFIG__BOT__TOKEN - your bot token
    APP_CONFIG__MAPP__HOST - webapp access address (docker interface ip for local use)

  2. run docker compose

sudo docker compose up --build -d

Organization

Alt text

Backend

  1. bot - simple aiogram bot template + user id database storage
  2. webapp - fastapi + socketio backend

Frontend

Static JS view

Gateway

Nginx proxy with self signed certs for accessing WebApp bypassing Telegram HTTP protocol ban
Also can be used as a proxy for telegram webhooks

About

fullstack Telegram WebApp (aiogram 3 + fastapi + socketio + Vanilla JS)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published