Your companion bot for referring the python documentation.
Requirements:
$ pyenv virtualenv 3.6.0 pydoxbot
$ pyenv activate pydoxbot
(pydoxbot) $
Using pyenv and virtualenv is not a requirement, however, I highly recommend its usage for manage python and packages' versions.
$ pip install -r requirements.txt
$ export BOT_API_TOKEN=<your telegram bot token here>
For production only:
When running in production Telegram recommends that you use a webhook approach. It has some advantages over the long pooling one.
$ export BOT_SERVER_URL=<bot host public url> $ export PORT=<port number>
$ python pydoxbot/core.py