@botmesh/core - v2.0.0-alpha.2
    Preparing search index...

    Interface MediaRef

    Opaque, lazy media reference on an inbound event. The bytes are NOT inline; IProvider.downloadMedia(ref) retrieves them. This single shape covers:

    • Baileys (decrypt + CDN fetch + possible reupload),
    • Cloud API / Telegram (resolve id -> short-lived URL -> fetch bytes),
    • Discord (plain HTTPS GET).
    interface MediaRef {
        kind:
            | "image"
            | "video"
            | "audio"
            | "voice"
            | "document"
            | "sticker"
            | "location"
            | "contact";
        mimetype?: string;
        filename?: string;
        size?: number;
        token: unknown;
    }
    Index
    kind:
        | "image"
        | "video"
        | "audio"
        | "voice"
        | "document"
        | "sticker"
        | "location"
        | "contact"
    mimetype?: string
    filename?: string
    size?: number
    token: unknown

    Provider-internal handle (Baileys message, Telegram file_id, Discord url).