Added Contact Model (#34)
This commit is contained in:
parent
b597e4a504
commit
e2351db722
7 changed files with 134 additions and 0 deletions
|
|
@ -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
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in a new issue