https://github.com/isys35/pyteledantic
Pydantic models for Telegram Bot API
https://github.com/isys35/pyteledantic
pydantic telegram
Last synced: 5 months ago
JSON representation
Pydantic models for Telegram Bot API
- Host: GitHub
- URL: https://github.com/isys35/pyteledantic
- Owner: isys35
- License: apache-2.0
- Created: 2021-10-28T14:12:03.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-10-06T15:12:16.000Z (over 3 years ago)
- Last Synced: 2025-12-27T22:26:58.383Z (6 months ago)
- Topics: pydantic, telegram
- Language: Python
- Homepage:
- Size: 83 KB
- Stars: 6
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Pydantic models for Telegram Bot API
Install:
```pip install pyteledantic```
How to use
FastAPI
````python
from fastapi import FastAPI
from pyteledantic.models import Update
app = FastAPI()
@app.post("/")
async def root(update: Update):
return update
````