mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-11-22 15:17:00 +01:00
jobqueue: fix docstring
This commit is contained in:
parent
218e22631c
commit
f0e7a3316c
2 changed files with 3 additions and 2 deletions
|
@ -41,10 +41,9 @@ class JobQueue(object):
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
bot (Bot): The bot instance that should be passed to the jobs
|
bot (Bot): The bot instance that should be passed to the jobs
|
||||||
|
|
||||||
Keyword Args:
|
|
||||||
tick_interval (Optional[float]): The interval this queue should check
|
tick_interval (Optional[float]): The interval this queue should check
|
||||||
the newest task in seconds. Defaults to 1.0
|
the newest task in seconds. Defaults to 1.0
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self, bot, tick_interval=1.0):
|
def __init__(self, bot, tick_interval=1.0):
|
||||||
|
|
|
@ -58,6 +58,8 @@ class Updater:
|
||||||
workers (Optional[int]): Amount of threads in the thread pool for
|
workers (Optional[int]): Amount of threads in the thread pool for
|
||||||
functions decorated with @run_async
|
functions decorated with @run_async
|
||||||
bot (Optional[Bot]):
|
bot (Optional[Bot]):
|
||||||
|
job_queue_tick_interval(Optional[float]): The interval the queue should
|
||||||
|
be checked for new tasks. Defaults to 1.0
|
||||||
|
|
||||||
Raises:
|
Raises:
|
||||||
ValueError: If both `token` and `bot` are passed or none of them.
|
ValueError: If both `token` and `bot` are passed or none of them.
|
||||||
|
|
Loading…
Reference in a new issue