nyx Typedoc
    Preparing search index...

    Class AbstractSession<Result>Abstract

    An object that represents a user's interaction session with a bot.

    A session stores its state, and can be updated and respond to user interactions.

    Type Parameters

    • Result = void

    Hierarchy (View Summary)

    Index
    bot: NyxBot
    id: string
    meta: Metadata = ...
    result: Result | null = null
    state: SessionState = SessionStateEnum.Uninitalized
    ttl: number = BaseSession.DefaultTTL
    DefaultTTL: 180000 = 180_000