mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-11-25 16:46:35 +01:00
Add Job Class to docs (#845)
* fix job class missing from docs * fix typo
This commit is contained in:
parent
7c3bba42cc
commit
dbb3b16edc
3 changed files with 8 additions and 1 deletions
6
docs/source/telegram.ext.job.rst
Normal file
6
docs/source/telegram.ext.job.rst
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
telegram.ext.Job
|
||||||
|
=====================
|
||||||
|
|
||||||
|
.. autoclass:: telegram.ext.Job
|
||||||
|
:members:
|
||||||
|
:show-inheritance:
|
|
@ -6,6 +6,7 @@ telegram.ext package
|
||||||
telegram.ext.updater
|
telegram.ext.updater
|
||||||
telegram.ext.dispatcher
|
telegram.ext.dispatcher
|
||||||
telegram.ext.filters
|
telegram.ext.filters
|
||||||
|
telegram.ext.job
|
||||||
telegram.ext.jobqueue
|
telegram.ext.jobqueue
|
||||||
telegram.ext.messagequeue
|
telegram.ext.messagequeue
|
||||||
telegram.ext.delayqueue
|
telegram.ext.delayqueue
|
||||||
|
|
|
@ -373,7 +373,7 @@ class Job(object):
|
||||||
name (:obj:`str`, optional): The name of the new job. Defaults to ``callback.__name__``.
|
name (:obj:`str`, optional): The name of the new job. Defaults to ``callback.__name__``.
|
||||||
days (Tuple[:obj:`int`], optional): Defines on which days of the week the job should run.
|
days (Tuple[:obj:`int`], optional): Defines on which days of the week the job should run.
|
||||||
Defaults to ``Days.EVERY_DAY``
|
Defaults to ``Days.EVERY_DAY``
|
||||||
job_queue (class:`telegram.ext.JobQueue`, optional): The ``JobQueue`` this job belongs to.
|
job_queue (:class:`telegram.ext.JobQueue`, optional): The ``JobQueue`` this job belongs to.
|
||||||
Only optional for backward compatibility with ``JobQueue.put()``.
|
Only optional for backward compatibility with ``JobQueue.put()``.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in a new issue