diff --git a/telegram/ext/jobqueue.py b/telegram/ext/jobqueue.py index e3cfacfd9..0cfa539cf 100644 --- a/telegram/ext/jobqueue.py +++ b/telegram/ext/jobqueue.py @@ -172,6 +172,11 @@ class JobQueue(object): :class:`telegram.ext.Job`: The new ``Job`` instance that has been added to the job queue. + Notes: + `interval` is always respected "as-is". That means that if DST changes during that + interval, the job might not run at the time one would expect. It is always recommended + to pin servers to UTC time, then time related behaviour can always be expected. + """ job = Job(callback, interval=interval, @@ -202,6 +207,11 @@ class JobQueue(object): :class:`telegram.ext.Job`: The new ``Job`` instance that has been added to the job queue. + Notes: + Daily is just an alias for "24 Hours". That means that if DST changes during that + interval, the job might not run at the time one would expect. It is always recommended + to pin servers to UTC time, then time related behaviour can always be expected. + """ job = Job(callback, interval=datetime.timedelta(days=1),