Function getMediaKeys

  • generates all the keys required to encrypt/decrypt & sign a media message

    Parameters

    • buffer: undefined | null | string | Uint8Array
    • mediaType: "ppic" | "product" | "image" | "video" | "sticker" | "audio" | "gif" | "ptt" | "thumbnail-document" | "thumbnail-image" | "thumbnail-link" | "thumbnail-video" | "md-app-state" | "md-msg-hist" | "document" | "product-catalog-image" | "payment-bg-image" | "ptv"

    Returns MediaDecryptionKeyInfo

Generated using TypeDoc