ultra-telegram-framework
    Preparing search index...

    Type Alias NarrowedMessage<F>

    NarrowedMessage: F extends "text"
        ? { text: string }
        : F extends "photo"
            ? { photo: PhotoSize[] }
            : F extends "document"
                ? { document: Document }
                : F extends "video"
                    ? { video: Video }
                    : F extends "voice"
                        ? { voice: Voice }
                        : F extends "location"
                            ? { location: Location }
                            : F extends "live_photo"
                                ? { live_photo: LivePhoto; photo: PhotoSize[] }
                                : {}

    Helper type that guarantees the presence of certain fields in Message depending on the passed filter.

    Type Parameters