-
getMediaKeys(buffer,
mediaType): MediaDecryptionKeyInfo
-
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"
generates all the keys required to encrypt/decrypt & sign a media message