diff --git a/docs-requirements.txt b/docs-requirements.txt index 82133027c..3151e8296 100644 --- a/docs-requirements.txt +++ b/docs-requirements.txt @@ -1,2 +1,3 @@ sphinx sphinx_rtd_theme +sphinx-pypi-upload diff --git a/setup.cfg b/setup.cfg index 389e7194e..0df889971 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,5 +1,10 @@ [wheel] universal = 1 -[upload_docs] +[build_sphinx] +source-dir = docs/source +build-dir = docs/build +all_files = 1 + +[upload_sphinx] upload-dir = docs/build/html diff --git a/telegram/bot.py b/telegram/bot.py index fa8e19d18..4d5b86d3b 100644 --- a/telegram/bot.py +++ b/telegram/bot.py @@ -141,6 +141,7 @@ class Bot(TelegramObject): data = self._parseAndCheckTelegram(json_data) self.bot = User.de_json(data) + return self.bot @log