ultra-telegram-framework
    Preparing search index...

    Type Alias NarrowedContext<C, F>

    NarrowedContext: C & {
        callbackQuery: F extends "callback_query"
            ? NonNullable<C["callbackQuery"]>
            : C["callbackQuery"];
        message: F extends | "message"
        | "text"
        | "photo"
        | "document"
        | "audio"
        | "video"
        | "voice"
        | "animation"
        | "sticker"
        | "contact"
        | "location"
        | "live_photo"
        | "guest_message"
        | "business_message"
            ? NonNullable<C["message"]> & NarrowedMessage<F>
            : C["message"];
    }

    Main type of the narrowed context. It extends the base context C, making certain fields MANDATORY.

    Type Parameters