-
Notifications
You must be signed in to change notification settings - Fork 6k
Labels
ℹ️ good-first-issueinformation: good-first-issueinformation: good-first-issue
Description
python-telegram-bot/examples/timerbot.py
Lines 56 to 58 in 3b4559d
| if 'job' in context.chat_data: | |
| old_job = context.chat_data['job'] | |
| old_job.schedule_removal() |
If the job has already run, those lines give an error after v13.0, as APS remvos the job after it has run. But as jobs can't be persisted natively, I think we should just restructure the example to give the jobs the chat_id as name and use get_jobs_by_name to remove them if necessary
Edit: And we should definetely remove the pass_* kwargs, those are deprecated since v12 …
Metadata
Metadata
Assignees
Labels
ℹ️ good-first-issueinformation: good-first-issueinformation: good-first-issue