Installation

Requirements

  • Python 3.9+

  • Telegram API key from my.telegram.org/apps

  • TDLib or tdjson

  • deepdiff

  • aio-pika

Install with TDLib included

pip install --upgrade pytdbot[tdjson]

For better performance, install orjson or ujson:

pip install orjson
# or
pip install ujson

Manual TDLib Installation

pip install pytdbot

Then build TDLib from source and specify the path using Client.lib_path.

Development Version

pip install --pre pytdbot