mirror of
https://github.com/cheveguerra/whatsapp-web.js.git
synced 2026-04-18 03:29:14 +00:00
Added Contact Model (#34)
This commit is contained in:
@@ -41,6 +41,13 @@ class Message extends Base {
|
||||
return this.client.getChatById(this._getChatId());
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the Contact this message was sent from
|
||||
*/
|
||||
getContact() {
|
||||
return this.client.getContactById(this._getChatId());
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the quoted message, if any
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user