diff --git a/telegram/jobqueue.py b/telegram/jobqueue.py index 03e3b4c25..7e0cc2458 100644 --- a/telegram/jobqueue.py +++ b/telegram/jobqueue.py @@ -41,10 +41,9 @@ class JobQueue(object): Args: bot (Bot): The bot instance that should be passed to the jobs - - Keyword Args: tick_interval (Optional[float]): The interval this queue should check the newest task in seconds. Defaults to 1.0 + """ def __init__(self, bot, tick_interval=1.0): diff --git a/telegram/updater.py b/telegram/updater.py index 651619330..3d502f564 100644 --- a/telegram/updater.py +++ b/telegram/updater.py @@ -58,6 +58,8 @@ class Updater: workers (Optional[int]): Amount of threads in the thread pool for functions decorated with @run_async bot (Optional[Bot]): + job_queue_tick_interval(Optional[float]): The interval the queue should + be checked for new tasks. Defaults to 1.0 Raises: ValueError: If both `token` and `bot` are passed or none of them.