phpbotgram

SceneAction
in package

Enumerates the lifecycle actions a scene handler can perform.

Mirrors SceneAction (aiogram/fsm/scene.py:167-171).

Case mapping (upstream → PHP):

  • enterEnter — transition into a new scene.
  • leaveLeave — leave the current scene without exiting FSM.
  • exitExit — exit the FSM entirely (clear state + history).
  • backBack — roll back to the previous scene in history.

Table of Contents

Cases

Back
Roll back to the previous scene recorded in the history stack.
Enter
Transition into a (possibly new) scene.
Exit
Exit the FSM entirely (clear state and scene history).
Leave
Leave the current scene without clearing FSM state.

Cases

Enter

Transition into a (possibly new) scene.

Mirrors SceneAction.enter.

Leave

Leave the current scene without clearing FSM state.

Mirrors SceneAction.leave.

Exit

Exit the FSM entirely (clear state and scene history).

Mirrors SceneAction.exit. Named Exitexit is a language construct in PHP but is a valid identifier in enum-case position.

Back

Roll back to the previous scene recorded in the history stack.

Mirrors SceneAction.back.

On this page

Search results