Add Job Class to docs (#845)

* fix job class missing from docs

* fix typo
This commit is contained in:
Jeff 2017-09-26 02:57:53 +08:00 committed by Eldinnie
parent 7c3bba42cc
commit dbb3b16edc
3 changed files with 8 additions and 1 deletions

View file

@ -0,0 +1,6 @@
telegram.ext.Job
=====================
.. autoclass:: telegram.ext.Job
:members:
:show-inheritance:

View file

@ -6,6 +6,7 @@ telegram.ext package
telegram.ext.updater
telegram.ext.dispatcher
telegram.ext.filters
telegram.ext.job
telegram.ext.jobqueue
telegram.ext.messagequeue
telegram.ext.delayqueue

View file

@ -373,7 +373,7 @@ class Job(object):
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.
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()``.
"""