feat: implement partial media downloads

This commit is contained in:
Adhiraj Singh
2021-12-02 11:38:24 +05:30
parent cd9c313e47
commit b5ac28d426
4 changed files with 152 additions and 9 deletions

View File

@@ -23,6 +23,8 @@ export type WAMediaUpload = Buffer | { url: URL | string } | { stream: Readable
/** Set of message types that are supported by the library */
export type MessageType = keyof proto.Message
export type DownloadableMessage = { mediaKey?: Uint8Array, directPath?: string, url?: string }
export type MediaConnInfo = {
auth: string
ttl: number