Teleforge API Reference - v0.1.0
    Preparing search index...

    Interface BffRequestContext

    interface BffRequestContext {
        _authState: BffAuthState;
        _identityState: BffIdentityState;
        _resolutionCache: Map<string, IdentityCacheEntry<AppUser>>;
        auth: BffAuthState;
        body: unknown;
        chatInstance: string | null;
        chatType: BffChatType;
        header: (name: string) => string | null;
        headers: Headers;
        id: string;
        identity: ResolvedIdentity<AppUser> | null;
        initDataRaw: string | null;
        json: <T>() => Promise<T>;
        launchMode: LaunchMode;
        method: string;
        path: string;
        response: BffResponseState;
        searchParams: URLSearchParams;
        setHeader: (name: string, value: string) => void;
        setStatus: (code: number) => void;
        startParam: string | null;
        telegramUser: WebAppUser | null;
        text: () => Promise<string>;
        timestamp: number;
        toResponse: () => Response;
        arrayBuffer: () => Promise<ArrayBuffer>;
    }
    Index

    Properties

    _authState: BffAuthState
    _identityState: BffIdentityState
    _resolutionCache: Map<string, IdentityCacheEntry<AppUser>>
    body: unknown
    chatInstance: string | null
    chatType: BffChatType
    header: (name: string) => string | null
    headers: Headers
    id: string
    identity: ResolvedIdentity<AppUser> | null
    initDataRaw: string | null
    json: <T>() => Promise<T>
    launchMode: LaunchMode
    method: string
    path: string
    searchParams: URLSearchParams
    setHeader: (name: string, value: string) => void
    setStatus: (code: number) => void
    startParam: string | null
    telegramUser: WebAppUser | null
    text: () => Promise<string>
    timestamp: number
    toResponse: () => Response
    arrayBuffer: () => Promise<ArrayBuffer>