Skip to content

GramIO API Reference / @gramio/scenes/dist / ScenesOptions

Interface: ScenesOptions

Defined in: scenes/index.d.ts:145

Properties

PropertyTypeDescriptionDefined in
passthrough?booleanControls what happens to updates that arrive while the user is inside a scene but do not match the current step (wrong update type, or no step handler claims them). - true (default): non-matching updates fall through to the outer bot chain, so global handlers like .command("cancel") or .on("message") can still react. The scene's firstTime flag is preserved so the user does not lose their place. - false: scenes greedily consume every update for the active user. Legacy behavior — useful if you intentionally want to isolate the user from outer handlers while a scene is active. Default truescenes/index.d.ts:162
storage?ScenesStorage-scenes/index.d.ts:146