Skip to content

Commit dbb3b16

Browse files
jeffffcEldinnie
authored andcommitted
Add Job Class to docs (python-telegram-bot#845)
* fix job class missing from docs * fix typo
1 parent 7c3bba4 commit dbb3b16

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

docs/source/telegram.ext.job.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
telegram.ext.Job
2+
=====================
3+
4+
.. autoclass:: telegram.ext.Job
5+
:members:
6+
:show-inheritance:

docs/source/telegram.ext.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ telegram.ext package
66
telegram.ext.updater
77
telegram.ext.dispatcher
88
telegram.ext.filters
9+
telegram.ext.job
910
telegram.ext.jobqueue
1011
telegram.ext.messagequeue
1112
telegram.ext.delayqueue

telegram/ext/jobqueue.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ class Job(object):
373373
name (:obj:`str`, optional): The name of the new job. Defaults to ``callback.__name__``.
374374
days (Tuple[:obj:`int`], optional): Defines on which days of the week the job should run.
375375
Defaults to ``Days.EVERY_DAY``
376-
job_queue (class:`telegram.ext.JobQueue`, optional): The ``JobQueue`` this job belongs to.
376+
job_queue (:class:`telegram.ext.JobQueue`, optional): The ``JobQueue`` this job belongs to.
377377
Only optional for backward compatibility with ``JobQueue.put()``.
378378
379379
"""

0 commit comments

Comments
 (0)