Welcome to python-telegram’s documentation

build status Documentation Status pypi package

Client for the tdlib library (at very early stage :) ).

Installation

To install just run

python3 -m pip install python-telegram

And register a new Telegram application.

Now you can start using it: Tutorial.

Note

You can find the examples in the source code.

This package contains pre-built tdlib library, so you don’t need build it. But if you want, you can find more information here: tdlib.

Docker

This library has docker image

docker run -i -t --rm \
            -v /tmp/docker-python-telegram/:/tmp/ \
            akhmetov/python-telegram \
            python3 /app/examples/send_message.py $(API_ID) $(API_HASH) $(PHONE) $(CHAT_ID) $(TEXT)