feat: message forwarding score (#716)

This commit is contained in:
Giancarlo Rocha
2021-07-11 21:52:54 -03:00
committed by GitHub
parent 4afff38713
commit 9d715735ed
2 changed files with 13 additions and 0 deletions

View File

@@ -94,6 +94,14 @@ class Message extends Base {
*/
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
* @type {boolean}