ultra-telegram-framework
    Preparing search index...

    Interface SessionOptions<S>

    interface SessionOptions<S extends SessionData> {
        getSessionKey?: (ctx: Context) => string | undefined;
        initial: () => S;
        storage?: Storage<S>;
    }

    Type Parameters

    Index

    Properties

    getSessionKey?: (ctx: Context) => string | undefined

    Key generation function ("chatId:userId" by default)

    initial: () => S

    Empty session initialization function (if data doesn't exist yet)

    storage?: Storage<S>

    Data storage (MemoryStorage by default)