X Tutup
Skip to content

Commit cdf36a2

Browse files
JosXajh0ker
authored andcommitted
Fixed deprecation warning (python-telegram-bot#586)
1 parent c5598b9 commit cdf36a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

telegram/ext/jobqueue.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ def put(self, job, next_t=None):
8181
``datetime.time`` will be interpreted as a specific time at which the job should
8282
run. This could be either today or, if the time has already passed, tomorrow.
8383
"""
84-
warnings.warn("'JobQueue.put' is being deprecated, use 'JobQueue.one_time_job', "
85-
"'JobQueue.repeating_job' or 'JobQueue.daily_job' instead")
84+
warnings.warn("'JobQueue.put' is being deprecated, use 'JobQueue.run_once', "
85+
"'JobQueue.run_daily' or 'JobQueue.run_repeating' instead")
8686
if job.job_queue is None:
8787
job.job_queue = self
8888
self._put(job, next_t=next_t)

0 commit comments

Comments
 (0)
X Tutup