From f0e7a3316cabbf96e9b402a95cc803aaa64d382a Mon Sep 17 00:00:00 2001 From: Noam Meltzer Date: Tue, 1 Mar 2016 20:20:51 +0200 Subject: [PATCH] jobqueue: fix docstring --- telegram/jobqueue.py | 3 +-- telegram/updater.py | 2 ++ 2 files changed, 3 insertions(+), 2 deletions(-) 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.