Skip to content

[BUG] Update timerbot example #2144

@Bibo-Joshi

Description

@Bibo-Joshi

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

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions