Hierarchy

  • Scene

Properties

Constructors

Methods

Properties

cacheTime: number = 3600

How long will the cache be kept? in seconds.

Default

3600

handler: ContextFn[]

All Content of scene available at here.

id: string

The scene identification.

Constructors

  • Parameters

    • id: string

      The scene identification, it must be different every scene. One id only can be use with One scene, to prevent error or malfunction.

    • Rest ...handler: ContextFn[]

    Returns Scene

Methods

  • Find any saved data which is matches with filters.

    Parameters

    • userId: number

      Filter with user identification.

    • chatId: number

      Filter with chat identification.

    Returns any

  • Save or update the data in scene.

    Parameters

    • data: DataScene

      Data will be saved into scene.

    Returns void