Function downloadMediaMessage
-
downloadMediaMessage<Type>(message,
type,
options,
ctx?): Promise<Type extends "buffer"
? Buffer
: Transform>
-
Type Parameters
-
Type extends "buffer" | "stream"
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