You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
User: /enterBot: welcome <- scene enteredUser: /sceneBot: inside scene <- handler inside scene respondsUser: /helloBot: ohayou <- handler outside scene responds
The common expectation seems to be that once in a scene, handlers outside the scene do not work for this user. However, this is not the current behaviour. If no listeners on the scene match, Telegraf passes through and calls the next middleware.
This issue proposes this behaviour changes in v5, with the addition of an option to Stage:
newStage([scene],{passThru: true})
passThru will be false by default, and will prevent users from escaping a scene. It can be set to true for current behaviour. Per-scene passThru may also be possible.
The text was updated successfully, but these errors were encountered:
Currently this code:
With this input, behaves like this:
The common expectation seems to be that once in a scene, handlers outside the scene do not work for this user. However, this is not the current behaviour. If no listeners on the scene match, Telegraf passes through and calls the next middleware.
This issue proposes this behaviour changes in v5, with the addition of an option to Stage:
passThru
will be false by default, and will prevent users from escaping a scene. It can be set to true for current behaviour. Per-scene passThru may also be possible.The text was updated successfully, but these errors were encountered: