Fix documentation of Request object initialization (for advanced users) (#866)

fixes #676
This commit is contained in:
Noam Meltzer 2017-10-12 00:39:09 +03:00 committed by GitHub
parent 2aa456d637
commit 8a8b1215c8
2 changed files with 5 additions and 3 deletions

View file

@ -97,7 +97,7 @@ class Bot(TelegramObject):
base_url (:obj:`str`, optional): Telegram Bot API service URL.
base_file_url (:obj:`str`, optional): Telegram Bot API file URL.
request (:obj:`telegram.utils.request.Request`, optional): Pre initialized
:obj:`telegram.utils.Request`.
:obj:`telegram.utils.request.Request`.
"""

View file

@ -69,8 +69,10 @@ class Updater(object):
user_sig_handler (:obj:`function`, optional): Takes ``signum, frame`` as positional
arguments. This will be called when a signal is received, defaults are (SIGINT,
SIGTERM, SIGABRT) setable with :attr:`idle`.
request_kwargs (:obj:`dict`, optional): Keyword args to control the creation of a request
object (ignored if `bot` argument is used).
request_kwargs (:obj:`dict`, optional): Keyword args to control the creation of a
`telegram.utils.request.Request` object (ignored if `bot` argument is used). The
request_kwargs are very useful for the advanced users who would like to control the
default timeouts and/or control the proxy used for http communication.
Note:
You must supply either a :attr:`bot` or a :attr:`token` argument.