telebot-ts API Documentation - v1.0.0
    Preparing search index...

    Class MemorySessionStorage<S>

    In-memory implementation of SessionStorage.

    Type Parameters

    • S = Record<string, unknown>

      Shape of the session data.

    Implements

    Index
    • Deletes session data from memory.

      Parameters

      • key: string

        Storage key.

      Returns void

    • Reads session data from memory.

      Parameters

      • key: string

        Storage key.

      Returns S | undefined

      Session data or undefined.

    • Writes session data to memory.

      Parameters

      • key: string

        Storage key.

      • value: S

        Session value to save.

      Returns void