Closed
Description
Steps to reproduce
job_queue.run_monthly(day=30, day_is_strict=False)
Expected behaviour
Runs on 30th day of each month excluding Feb + on Feb 28th/29th
Actual behaviour
Runs on 30th and 31st day of each month excluding Feb + on Feb 28th/29th
This happens because I didn't pay enough attention when writing this:
python-telegram-bot/telegram/ext/jobqueue.py
Lines 364 to 384 in 0c50850
However, the use case of day_is_strict
is mainly "run on the last day of the month". I therefore suggest to just drop the parameter and instead allow to pass day='last'
or day=-1
(I like this one better) to indicate that you want to run the job on the last day of the month.
The use case described above can still be achieved with run_custom
.