ultra-telegram-framework
    Preparing search index...
    Index

    Constructors

    Accessors

    Methods

    Constructors

    • Parameters

      • ctx: { session?: Record<string, any> }

      Returns SceneManager

    Accessors

    • get state(): Record<string, any>

      Storage for temporary data of a specific scene. Cleared when leaving the scene.

      Returns Record<string, any>

    • set state(value: Record<string, any>): void

      Parameters

      • value: Record<string, any>

      Returns void

    Methods

    • Enter a new scene

      Parameters

      • name: string

        Scene name

      • initialState: Record<string, any> = {}

        Initial state (optional)

      Returns void

    • Leave the current scene (resets FSM)

      Returns void

    • Go to the next step in the Wizard scene

      Returns void

    • Go to a specific step by its index

      Parameters

      • index: number

      Returns void