mirror of
https://github.com/cheveguerra/whatsapp-web.js.git
synced 2026-04-20 04:29:15 +00:00
Added message duration in seconds (#1230)
Co-authored-by: Pedro S. Lopez <pedroslopez@me.com>
This commit is contained in:
2
index.d.ts
vendored
2
index.d.ts
vendored
@@ -615,6 +615,8 @@ declare namespace WAWebJS {
|
|||||||
hasMedia: boolean,
|
hasMedia: boolean,
|
||||||
/** Indicates if the message was sent as a reply to another message */
|
/** Indicates if the message was sent as a reply to another message */
|
||||||
hasQuotedMsg: boolean,
|
hasQuotedMsg: boolean,
|
||||||
|
/** Indicates the duration of the message in seconds */
|
||||||
|
duration: string,
|
||||||
/** ID that represents the message */
|
/** ID that represents the message */
|
||||||
id: MessageId,
|
id: MessageId,
|
||||||
/** Indicates if the message was forwarded */
|
/** Indicates if the message was forwarded */
|
||||||
|
|||||||
@@ -134,6 +134,12 @@ class Message extends Base {
|
|||||||
*/
|
*/
|
||||||
this.hasQuotedMsg = data.quotedMsg ? true : false;
|
this.hasQuotedMsg = data.quotedMsg ? true : false;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Indicates the duration of the message in seconds
|
||||||
|
* @type {string}
|
||||||
|
*/
|
||||||
|
this.duration = data.duration ? data.duration : undefined;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Location information contained in the message, if the message is type "location"
|
* Location information contained in the message, if the message is type "location"
|
||||||
* @type {Location}
|
* @type {Location}
|
||||||
|
|||||||
Reference in New Issue
Block a user