Skip to content

[FEATURE] ConversationHandler with option to override all handlers' run async option #2283

@zeshuaro

Description

@zeshuaro

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

I have a long ConversationHandler in which I want all of its handlers to be able to run asynchronously. To achieve this, I have to set every handler in this ConversationHandler with run_async=True. I found this a bit repetitive and thought that there might be an easier way.

Describe the solution you'd like

I think it would be nice if there is an option in ConversationHandler like all_handlers_run_async: bool. When it is set to True, then all the handlers in this ConversationHandler would be overridden with run_async=True.

We can also give a bit more flexibility by adding options like all_entry_points_run_async, all_states_run_async and all_fallbacks_run_async, where it only overrides a subset of handlers with run_async=True

Describe alternatives you've considered

N/A

Additional context

N/A

Let me know what you think and Happy New Year!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions