mirror of
https://github.com/cheveguerra/whatsapp-web.js.git
synced 2026-04-18 19:49:16 +00:00
[+] New message_create event that is fired on all message creations.
A new property "fromMe" has also been added to messages. Close #8
This commit is contained in:
@@ -23,6 +23,7 @@ class Message extends Base {
|
||||
this.author = data.author;
|
||||
this.isForwarded = data.isForwarded;
|
||||
this.broadcast = data.broadcast;
|
||||
this.fromMe = data.id.fromMe;
|
||||
|
||||
return super._patch(data);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user