mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2025-03-17 04:39:55 +01:00
Fix documentation of Request object initialization (for advanced users) (#866)
fixes #676
This commit is contained in:
parent
2aa456d637
commit
8a8b1215c8
2 changed files with 5 additions and 3 deletions
|
@ -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`.
|
||||
|
||||
"""
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue