mirror of
https://github.com/cheveguerra/whatsapp-web.js.git
synced 2026-04-20 20:49:14 +00:00
feat: message forwarding score (#716)
This commit is contained in:
5
index.d.ts
vendored
5
index.d.ts
vendored
@@ -517,6 +517,11 @@ declare namespace WAWebJS {
|
|||||||
id: MessageId,
|
id: MessageId,
|
||||||
/** Indicates if the message was forwarded */
|
/** Indicates if the message was forwarded */
|
||||||
isForwarded: boolean,
|
isForwarded: boolean,
|
||||||
|
/**
|
||||||
|
* Indicates how many times the message was forwarded.
|
||||||
|
* The maximum value is 127.
|
||||||
|
*/
|
||||||
|
forwardingScore: number,
|
||||||
/** Indicates if the message was starred */
|
/** Indicates if the message was starred */
|
||||||
isStarred: boolean,
|
isStarred: boolean,
|
||||||
/** Location information contained in the message, if the message is type "location" */
|
/** Location information contained in the message, if the message is type "location" */
|
||||||
|
|||||||
@@ -94,6 +94,14 @@ class Message extends Base {
|
|||||||
*/
|
*/
|
||||||
this.isForwarded = data.isForwarded;
|
this.isForwarded = data.isForwarded;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Indicates how many times the message was forwarded.
|
||||||
|
*
|
||||||
|
* The maximum value is 127.
|
||||||
|
* @type {number}
|
||||||
|
*/
|
||||||
|
this.forwardingScore = data.forwardingScore || 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Indicates if the message is a status update
|
* Indicates if the message is a status update
|
||||||
* @type {boolean}
|
* @type {boolean}
|
||||||
|
|||||||
Reference in New Issue
Block a user