raito.plugins.scenes.middleware moduleΒΆ

class raito.plugins.scenes.middleware.SceneMiddleware(manager)[source]ΒΆ

Bases: BaseMiddleware

Middleware that drops a stale scene before its step runs.

Installed on both the message and callback query observers, so a stale scene is dropped whether the next step expects text or an inline button.

Parameters:

manager (SceneManager[Any])