- Preparing search index...
- The search index is not available
baileys
Function downloadMediaMessage
- downloadMediaMessage<Type>(message, type, options, ctx?): Promise<Type extends "buffer"
? Buffer
: Transform>
-
Type Parameters
-
Type extends "stream" | "buffer"
Parameters
-
-
type: Type
-
-
Optional
ctx: DownloadMediaMessageContext
Returns Promise<Type extends "buffer"
? Buffer
: Transform>
Downloads the given message. Throws an error if it's not a media message