Skip to content

How get current dialog state from dialog_manager #411

@kadyrovfriend

Description

@kadyrovfriend

Hi!
Is there an easy way to get the name of dialog, or its state from dialog_manager?

So i`ve made путукфд handler for all exceptions, ocurred in my code, sending message to admin with description of error. And i need the name of dialog, so i can recreate the bug.

dialog_manager.middleware_data.raw_state was my first option, but this variable is None
So I can iterate through storage to find the last state, but maybe there are easier ways to find the current state?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions