Skip to content

isys35/pyteledantic

Repository files navigation

Pydantic models for Telegram Bot API

Install:

pip install pyteledantic

How to use

FastAPI

from fastapi import FastAPI
from pyteledantic.models import Update


app = FastAPI()


@app.post("/")
async def root(update: Update):
    return update