feat: Adding file size by bytes to MessageMedia (#1273)
* Update index.d.ts * Update Message.js * Update Message.js * Update MessageMedia.js * Update MessageMedia.js
This commit is contained in:
parent
c5c705a553
commit
bd553f75d3
3 changed files with 20 additions and 8 deletions
5
index.d.ts
vendored
5
index.d.ts
vendored
|
|
@ -809,13 +809,16 @@ declare namespace WAWebJS {
|
|||
data: string
|
||||
/** Document file name. Value can be null */
|
||||
filename?: string | null
|
||||
/** Document file size in bytes. Value can be null. */
|
||||
filesize?: number | null
|
||||
|
||||
/**
|
||||
* @param {string} mimetype MIME type of the attachment
|
||||
* @param {string} data Base64-encoded data of the file
|
||||
* @param {?string} filename Document file name. Value can be null
|
||||
* @param {?number} filesize Document file size in bytes. Value can be null.
|
||||
*/
|
||||
constructor(mimetype: string, data: string, filename?: string | null)
|
||||
constructor(mimetype: string, data: string, filename?: string | null, filesize?: number | null)
|
||||
|
||||
/** Creates a MessageMedia instance from a local file path */
|
||||
static fromFilePath: (filePath: string) => MessageMedia
|
||||
|
|
|
|||
Loading…
Reference in a new issue