Installation¶
Pytdbot needs Python 3.10+, a Telegram API key, and TDLib.
Recommended¶
Install Pytdbot with a pre-built TDLib (tdjson):
For faster JSON parsing, also install orjson or ujson.
Without a pre-built TDLib¶
If that extra fails, install the library alone:
Then build TDLib from source and pass the library path:
Development version¶
Optional extras¶
| Extra | Install | What it is |
|---|---|---|
tdjson |
pip install pytdbot[tdjson] |
Pre-built TDLib |
nats |
pip install pytdbot[nats] |
TDLib Server via NATS |
docs |
pip install pytdbot[docs] |
This site (properdocs serve) |
Next: Quick start.