Skip to content

[FEATURE] Pass jobs to error handlers #2568

@Bibo-Joshi

Description

@Bibo-Joshi

Is your feature request related to a problem? Please describe.

When a job callback raises an error, there's currently no way to link the exception to the job in an error handler

Describe the solution you'd like

  • Add a paremeter job to CallbackContext.from_error
  • Adjust the calls in JobQueue accordingly

Additional context

Reported in the usergroup, discussion strated here: https://t.me/pythontelegrambotgroup/489719

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Priority

    None yet

    Effort

    None yet

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions