Skip to content

[BUG] DispatcherHandlerStop not working with ConversationHandler #2057

@Bibo-Joshi

Description

@Bibo-Joshi

Because a callback ends on return next_state or raise DispatcherHandlerStop(), currently raising DPHS from a conversation callback doesn't work.

#Proposed solution:

  • add an optional argument next_state or similar to DPHS that only makes sensce in conversation context
  • in CH catch DPHS, set the new state accordingly and reraise DPHS.

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